17-25
Cisco IE 2000 Switch Software Configuration Guide
OL-25866-01
Chapter 17 Configuring VLANs
Configuration Examples for Configuring VLANs
Configuring a VLAN: Example
This example shows how to create Ethernet VLAN 20, na me it test20, and add it to the VLAN database:
Switch# configure terminal
Switch(config)# vlan 20
Switch(config-vlan)# name test20
Switch(config-vlan)# end
Configuring an Access Port in a VLAN: Example
This example shows how to configure a port as an access port in VLAN 2:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 2
Switch(config-if)# end
Configuring an Extended-Range VLAN: Example
This example shows how to create a new extended-range VLAN with all default characteristics:
Switch(config)# vtp mode transparent
Switch(config)# vlan 2000
Switch(config-vlan)# end
Switch# copy running-config startup config
Configuring a Trunk Port: Example
This example shows how to configure a port as an IEEE 802.1Q trunk. The exa mple assumes that the
neighbor interface is configured to support IEEE 802.1Q trunking.
Switch(config)# interface gigabitethernet1/2
Switch(config-if)# switchport mode dynamic desirable
Switch(config-if)# end
Removing a VLAN: Example
This example shows how to remove VLAN 2 from the allowed VLAN list on a port :
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# switchport trunk allowed vlan remove 2
Switch(config-if)# end
Show VMPS Output: Example
This is an example of output for the show vmps privileged EXEC command:
Switch# show vmps
VQP Client Status:
--------------------
VMPS VQP Version: 1