This article discusses the verification of port mode Trunk for interfaces on EX Series switches (excluding the EX 2500 Series).
By default, all Gig Ethernet interfaces on EX Series switches are in port mode access. Verify this by checking the configuration hierarchy for a given interface, eg: ge-0/0/0:
user@switch# edit interfaces ge-0/0/0
[edit interfaces ge-0/0/0]
user@switch# show
unit 0 {
family ethernet-switching ;
}
When we set the port-mode of an interface to Trunk on the EX series, we can verify the port mode by checing the configuration as below:
user@switch# show interfaces ge-0/0/0
unit 0 {
family ethernet-switching {
port-mode trunk;
}
}
Then issue the following command to view extensive interface information:
user@switch# run show interfaces ge-0/0/0 extensive
At the end of the output, you will see a flag for the logical interface ge-0/0/0.0 which specifies the port-mode as Trunk:
Logical interface ge-0/0/0.0 (Index 93) (SNMP ifIndex 116) (Generation 158)
Flags: Device-Down SNMP-Traps 0x0 Encapsulation: ENET2
Traffic statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Protocol eth-switch, Generation: 174, Route table: 0
Flags: Trunk-Mode
2020-04-15: Article reviewed for accuracy. No changes made. Article is correct and complete.