Configuring Port-Cased VLANs on Device-C
Enter the following commands to configure Device-C (as shown in More Complex Port-based VLAN).
device# enable device# configure terminal device(config)# hostname device-C device-C(config)# vlan 2 name BROWN device-C(config-vlan-2)# vlan 2 by port device-C(config-vlan-2)# untagged ethernet 1/1/1 to 1/1/4 device-C(config-vlan-2)# tagged ethernet 1/1/25 to 1/1/26 device-C(config-vlan-2)# spanning-tree device-C(config-vlan-2)# spanning-tree priority 500 device-C(config-vlan-2)# vlan 3 name GREEN device-C(config-vlan-3)# vlan 3 by port device-C(config-vlan-3)# untagged ethernet 1/1/5 to 1/1/8 device-C(config-vlan-3)# tagged ethernet 1/1/25 to 1/1/26 device-C(config-vlan-3)# spanning-tree device-C(config-vlan-3)# spanning-tree priority 500 device-C(config-vlan-3)# vlan 4 name BLUE device-C(config-vlan-4)# vlan 4 by port device-C(config-vlan-4)# untagged ethernet 1/1/9 to 1/1/12 device-C(config-vlan-4)# tagged ethernet 1/1/25 to 1/1/26 device-C(config-vlan-4)# vlan 5 name RED device-C(config-vlan-5)# vlan 5 by port device-C(config-vlan-5)# untagged ethernet 1/1/13 to 1/1/16 device-C(config-vlan-5)# tagged ethernet 1/1/25 to 1/1/26 device-C(config-vlan-5)# end device-C# write memory