Configure Port Modes,VLAN membership & Validate VLAN memberships- juniper Ex series switches

By default, all EX-series switch ports are access ports. Trunk ports must be manually configured.

To configure a trunk port, enter the following command:

‘set interface <name> unit 0 family ethernet-switching port-mode trunk’

To change the port back to access mode, simply change the keyword from “trunk” to “access”. Use the table below to determine the port role.


Remember, only trunk ports need to be manually configured. The command below was performed on Switch  to configure a trunk port.

Tip: When configuring the logical interface, you can avoid typing “unit <unit_number>” by using the “.” + “unit_number” in conjunction with the interface, as shown in the command below performed on Switch.

juniper# set interfaces ge-0/0/0.0 family ethernet-switching port-mode trunk

The command above is equivalent to ‘set interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode trunk’

VLAN Membership

There are two ways to assign ports to a VLAN:

  • Interface Level: Use the command ‘set interfaces <name> unit 0 family ethernet switching vlan members <vlan_name or vlan_id>’
  •  VLAN Level: Use the command ‘set vlans <vlan_name> interface <logical_inteface>’

Below is the VLAN membership information required to complete this exercise.Vlan membership

Tip: If all VLANs are required on a trunk port and you are configuring VLAN membership via the interface method, use the keyword “all”, as shown in the command below entered on Switch. Configure all the other interfaces based to the table above.

juniper> set interfaces ae0.0 family ethernet-switching vlan members all

Validate VLAN memberships

The VLAN outputs were done on the Virtual Chassis switches.

VLAN sales

“Untagged” means neither the transmit (TX) nor receive (RX) packets will be tagged. “Tagged” means both TX and RX packets will be tagged with 802.1q. The asterisk indicates that the port is active.

To obtain high-level VLAN, interface and forwarding status information, use the following command:

‘show ethernet-switching interface’

Ethernet Switching

Tip: Cisco switches implement hybrid trunks. A hybrid trunk is a given VLAN that is either tagged or untagged (native VLAN) on a trunk for transmit and receive. The command to configure native VLAN on EX-series switches is as follows (make sure the native VLAN matches on both switches):

‘set intefaces <name> unit 0 family ethernet-switching native-vlan-id <vlan_name or vlan_id>’


Change the Way You Prepare for Your Exams

Click Now to Try