1. Create vlan on the switch
Establish a VTP management domain
In order to create a vlan on a switch, a vtp management domain must be first established to enable it to verify the current vlan on the network
The Catalyst 4000 series switch module only supports 802.1q.
Determine whether the hardware supports the main road, and the main road packaging and use of the hardware supported: show portability
First run clear config allvtp command:
Configure the VTP management domain or join a management domain on an IOS-based switch:
switch# vlan database
witch(vlan)# vtp domain domain-name
Configure the VTP management domain on a CLI-based switch:
switch(enable) set vtp [domain domain-name] password Configure VTP mode on IOS-based switch:
witch# vlan database
witch(vlan)# vtp domain domain-name
witch(vlan)# vtp {sever|cilent|transparent}
witch(vlan)# vtp password password
Configure VTP mode on a CLI-based switch:
switch(enable) set vtp [domain domain-name] [mode{sever|cilent|transparent }][password password]
Verify the configuration of vtp:
how vtp domain
how vtp statistics
Configure the VTP version on an IOS-based switch:
VTP version 1 is the default configuration
witch# vlan database
witch(vlan)# vtp v2-mode
Configure the VTP version on a CLI-based switch:
witch(enable) set vtp v2 enable starts VTP clipping on IOS-based switch:
witch# vlan database
witch(vlan)# vtp pruning
Start VTP clipping on a CLI-based switch:
witch(enable) set vtp pruning enable
(set vtp pruneeligible vlan-range)
Don't use vtp trim:
clear vtp pruneeligible vlan-range
Verify the configuration of vtp pruning:
how trunk
2. Create Vlan to configure static VLAN on IOS-based switches:
witch# vlan database
witch(vlan)# vlan vlan-num name vlan-name
witch(vlan)# exit
witch# configure teriminal
witch(config)# interface interface module/number
witch(config-if)# switchport mode access
witch(config-if)# switchport access vlan vlan-num
witch(config-if)# end
Configure static VLAN on a CLI-based switch:
witch(enable) set vlan vlan-num [name name]
witch(enable) set vlan vlan-num mod-num/port-list verification configuration: show vlan
3. Configure the main road link
The main road is a point-to-point link between two catalyst switch ports or a catalyst switch and a router.
The main road link can carry multiple vlans.
Configuring the main road link on IOS-based switches
witch(config)# interface interface mod/port
witch(config-if)# switchport mode trunk
witch(config-if)# switchport trunk encapsulation {isl|dotlq}
witch(config-if)# switchport trunk allowed vlan remove vlan-list
witch(config-if)# switchport trunk allowed vlan add vlan-list
Configure the trunk link on a CLI-based switch:
witch(enable) set trunk module/port[on|off|desirable|auto|nonegotiate]
Vlan-range