Chapter 4: Introduction to VLANs

Commands:

4.3.1 Configuring static VLANs

IOS

Switch(config-if)#switchport mode [access | multi | trunk]

Switch(config-if)#switchport access vlan vlan-num

CLI

Switch> (enable) set vlan vlan-num mod/num,list

 

4.3.2 Verify VLAN configuration

IOS

Switch#show vlan brief

CLI

Switch> (enable) show vlan

 

4.3.3 Deleting VLANs

IOS

Switch(config-if)#no switchport access vlan vlan-num

CLI

Switch> (enable) clear vlan vlan

 

4.3.4 Configure the VMPS server

CLI

Switch> (config) set vmps state enable

Switch> (config) set vmps state disable

 

4.3.5 Configure a VMPS client

CLI

Switch> (enable) set vmps server ip-address [primary]

Switch> (enable) show vmps server

Switch> (enable) set port membership mod-num port-num {dynamic | static}

Switch> (enable) show port {mod-num/port-num}

 

4.5.2 Configuring a VLAN trunk

IOS

Switch(config-if)#switchport mode [access | multi | trunk]

Switch(config-if)#switchport trunk encapsulation {isl|dot1q}

CLI

Switch> (enable) set trunk mod/port [on | off |desirable | auto | nonegotiate] [isl | dot1q | dot10 | lane | negotiate] vlan-range

Switch> (enable) show port capabilities mod/num

 

4.5.3 Removing VLANs from a trunk

IOS

Switch(config-if)#switchport trunk allowed vlan remove vlan-list

CLI

Switch> (enable) clear trunk mod/port vlan-range

Switch> (enable) show trunk

 

4.7.2 Configure the VTP version

IOS

Switch(vlan)#vtp v2-mode

CLI

Switch> (enable) set vtp v2 enable (version 2)

 

4.7.3 Configure the VTP domain

IOS

Switch(vlan)#vtp domain domain-name

CLI

Switch> (enable) set vtp [domain domain-name]
     [mode {server | client | transparent}]
     [password password]

 

4.7.4 Configure the VTP mode

IOS

Switch(vlan)#vtp {server | client | transparent}

CLI

Switch> (enable) set vtp [domain domain-name]
     [mode {server | client | transparent}]
     [password password]

 

4.7.5 Verify VTP configuration

IOS

Switch#show vtp

Switch#show vtp status

Switch#show vtp counters

CLI

Switch> (enable) show vtp domain

Switch> (enable) show vtp statistics

Switch> (enable) show vlan

 

4.8.2 Configure VTP pruning

IOS

Switch(vlan)#vtp pruning

Switch(config-if)#switchport trunk pruning vlan remove vlan-list

CLI

Switch> (enable) set vtp pruning enable

Switch> (enable) set vtp pruneeligible vlan-range

Switch> (enable) clear vtp pruning vlan-range

 

4.8.3 Verify VTP pruning

IOS

Switch#show interface mod/num switchport

Switch#show vtp

Switch#show vtp status

Switch#show vtp counters

CLI

Switch> (enable) show trunk

Switch> (enable) show vtp domain

Switch> (enable) show vtp statistics