Using the CLI to Configure VLANs

  1. Create VLAN 2 and VLAN 3.
    (Extreme 220) (Routing) #vlan database
    vlan 2
    vlan 3
    exit
  2. Assign ports 1/0/1 and 1/0/2 to VLAN2 and specify that untagged frames will be rejected on receipt.
    (Extreme 220) (Routing) #Config
    interface1/0/1
    vlan participation include 2
    vlan acceptframe vlanonly
    exit
    interface1/0/2
    vlan participation include 2
    vlan acceptframe vlanonly
  3. While in interface config mode for port 1/0/2, assign VLAN3 as the default VLAN.
    (Extreme 220) (Routing) (Interface 1/0/2)#vlan pvid 3
    exit
  4. Specify that frames will always be transmitted tagged from ports that are members of VLAN 2.
    (Extreme 220) (Routing)(Config)#vlan port tagging all 2
    exit
  5. Assign the ports that will belong to VLAN 3.
      Port 1/0/2 belongs to both VLANs, and port 1/0/1 can never belong to VLAN 3.
    (Extreme 220) (Routing) #Config
    interface1/0/2
    vlan participation include 3
    exit
    interface1/0/3
    vlan participation include 3
    exit
    interface1/0/4
    vlan participation include 3
    exit
    exit
  6. Specify that untagged frames will be accepted on port 1/0/4.
    (Extreme 220) (Routing) #Config
    interface1/0/4
    vlan acceptframe all
    exit
    exit