1. Create a vlan on the vswitch
Create a vtp management domain
To create a vlan on a vswitch, you must first create a vtp management domain so that it can verify the current vlan on the network.
The Catalyst 4000 Series Switch module only supports 802.1q.
Determine whether the hardware supports trunk and whether the hardware supports trunk encapsulation: show portcapabilities
Run clear config allvtp command:
Configure the VTP management domain on the IOS-based switch or add a management domain:
Switch # vlan database
Witch (vlan) # vtp domain-name
Configure the VTP management domain on a CLI-based switch:
Switch (enable) set vtp [domain-name] passwd password:
Witch # vlan database
Witch (vlan) # vtp domain-name
Witch (vlan) # vtp {sever | cilent | transparent}
Witch (vlan) # vtp password
Configure the VTP mode on a CLI-based switch:
Switch (enable) set vtp [domain-name] [mode {sever | cilent | transparent}] [password]
Verify vtp Configuration:
How vtp domain
How vtp statistics
Configure the VTP version on the IOS-based switch:
VTP version 1 is the default configuration
Witch # vlan database
Witch (vlan) # vtp v2-mode
Configure the VTP version on the CLI-based switch:
Witch (enable) set vtp v2 enable to enable VTP tailoring on IOS-based switches:
Witch # vlan database
Witch (vlan) # vtp pruning
Start VTP tailoring on a CLI-based switch:
Witch (enable) set vtp pruning enable
(Set vtp pruneeligble vlan-range)
Vtp pruning not available:
Clear vtp pruneeligble vlan-range
Verify vtp trim Configuration:
How trunk
2. Create a Vlan and configure the static VLAN on the IOS-based switch:
Witch # vlan database
Witch (vlan) # vlan-num name vlan-name
Witch (vlan) # exit
Witch # configure teriminal
Witch (config) # interface module/number
Witch (config-if) # switchport mode access
Witch (config-if) # switchport access vlan-num
Witch (config-if) # end
Configure static VLAN on a CLI-based switch:
Witch (enable) set vlan-num [name]
Witch (enable) set vlan-num mod-num/port-list Verify Configuration: show vlan
3. Configure the trunk Link
The trunk is a point-to-point link between two catalyst Switch ports or between the catalyst Switch and the router.
Trunk links can carry multiple VLANs.
Configure trunk links on IOS-based switches
Witch (config) # 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 the CLI-based switch:
Witch (enable) set trunk module/port [on | off | desirable | auto | nonegotiate]
Vlan-range
Article entry: csh responsible editor: csh