Configuring a Switch for VLAN Tagging and Trunking

Follow the steps below to configure a 200 Series switch for VLAN tagging or trunking on uplink or downlink interfaces.
  1. Log on to the switch.
  2. Enter enable to access Privileged EXEC mode.
  3. Create one or more VLANs in the VLAN database.

    For example:

    (Extreme 220) #vlan database
    (Extreme 220) (Vlan)#vlan 10,20,30
    (Extreme 220) (Vlan)#exit
  4. Enter Global Config mode and enable trunk mode on the interface.

    For example:

    (Extreme 220) #configure
    (Extreme 220) (Config) #interface 1/0/2
    (Extreme 220) (Interface 1/0/2) #vlan tagging 10,20,30
    (Extreme 220) (Interface 1/0/2) #vlan participation include 10,20,30
    (Extreme 220) (Interface 1/0/2) #exit
    (Extreme 220) (Config) #exit
    Note

    Note

    Optionally, you can also configure VLANs tagging by using the trunk mode option, which works in the same way as the previous example:
    (Extreme 220) #config
    (Extreme 220) (Config) #interface 1/0/2
    (Extreme 220) (Interface 1/0/2) #switchport mode trunk
    (Extreme 220) (Interface 1/0/2) #switchport trunk allowed vlan 10
    (Extreme 220) (Interface 1/0/2) #switchport trunk allowed vlan add 20.30
    (Extreme 220) (Interface 1/0/2) #exit
    (Extreme 220) (Config) #exit
    (Extreme 220) #write memory confirm
  5. Save your configuration.
For information about configuring your switch with an untagged VLAN, see Configuring a Switch with an Untagged VLAN for Access Ports.

To configure a range or list of ports, see Configuring Multiple Ports at the Same Time.

To view all ports on a switch issue the command show port all.