Step 1. define VTPCOSsetvtpdomaindomain-nameIOS (vlan) vtpdomaindomain-name or (global) vtpdomaindomain-name2. create VLANCOSsetvlanvlan-id [namename] [statestate] [mtumtu] IOS (vlan) vlanvlan-id [namevlan-name] [sta
Step 1. define vtp cos set vtp domain-name IOS (vlan) vtp domain-name or (global) vtp domain-name 2. create a vlan cos set vlan-id [name] [state] [mtu] IOS (vlan) vlan-id [name vlan-name] [sta
Create a VLAN
1. Define VTP
COS
Set vtp domain-name
IOS
(Vlan) vtp domain-name
Or
(Global) vtp domain-name
2. Create a VLAN
COS
Set vlan-id [name] [state] [mtu]
IOS
(Vlan) vlan-id [name vlan-name] [state {suspend | active}] [mtu-size]
(Global) vlan-id
(Vlan-config) vlan-id [mtu-size] [name vlan-name] [state {suspend | active}]
Example
CatOS
(Enable)> set vtp mode transparent
(Enable)> set vlan 5 name Cameron
(Enable)> set vlan 8 name Logan
(Enable)> set vlan 10 name Katie
(Enable)> set spantree macequalction enable
(Enable)> set vlan 2112 name Rush
(Enable)>
IOS
# Vlan database
(Vlan) # vtp transparent
(Vlan) # vlan 5 name Cameron
(Vlan) # vlan 8 name Logan
(Vlan) # vlan 10 name Katie
(Vlan) # exit
# Copy running-config startup-config
TRUNK
An example of the Catalyst OS configuration for Distribution_1 follows:
Distribution_1 (enable)> clear trunk 1/1 2-1001
Distribution_1 (enable)> set trunk 1/1 desirable isl 10
Distribution_1 (enable)> clear trunk 2/1 2-1001
Distribution_1 (enable)> set trunk 2/1 on dot1q 5, 8, 10
An example of the Catalyst OS configuration for Core_1 follows:
Core_1 (enable)> clear trunk 1/1 2-1001
Core_1 (enable)> set trunk 1/1 10
An example of the Supervisor IOS configuration for Core_1 follows:
Core_1 (config) # interface gigabitethernet 1/1
Core_1 (config-if) # switchport encapsulation negotiate
Core_1 (config-if) # switchport mode dynamic auto
Core_1 (config-if) # switchport trunk allowed vlan remove 2-1001
Core_1 (config-if) # switchport trunk allowed vlan add 10
Core_1 (config-if) # end
Core_1 # copy running-config startup-config
An example of the Layer 2 IOS configuration for Access_1 follows:
Access_1 (config) # interface gigabitethernet 0/1
Access_1 (config-if) # switchport mode trunk
Access_1 (config-if) # switchport trunk encapsulation dot1q
Access_1 (config-if) # switchport trunk allowed vlan remove 2-1001
Access_1 (config-if) # switchport trunk allowed vlan add 5, 8, 10
Access_1 (config-if) # end
Access_1 # copy running-config startup-config
An example of the Catalyst OS configuration for Core_1 follows:
Core_1 (enable)> set vtp mode transparent
Core_1 (enable)> set trunk 1/1 on isl
Core_1 (enable)> set trunk 1/2 on isl
Core_1 (enable)>
An example of the Catalyst OS configuration for Distribution_1 follows:
Distribution_1 (enable)> set vtp domain GO-CATS
Distribution_1 (enable)> set trunk 1/1 on isl
Distribution_1 (enable)> set trunks 2/1 on dot1Q
Distribution_1 (enable)> set vtp pruning enable
Distribution_1 (enable)> clear vtp pruneeligible 10
An example of the Catalyst OS configuration for Distribution_2 follows:
Distribution_2 (enable)> set trunks 1/1 on isl
Distribution_2 (enable)> clear vtp pruneeligible 10
An example of the Layer 2 IOS configuration for Access_1 follows:
Access_1 # vlan database
Access_1 (vlan) # vtp client
Access_1 (vlan) # exit
Access_1 # config t
Access_1 (config) # interface gigabitethernet 0/1
Access_1 (config-if) # switchport mode trunk
Access_1 (config-if) # switchport trunk encapsulation dot1Q
Access_1 (config-if) # switchport trunk pruning vlan remove 10
Access_1 (config-if) # end
Access_1 # copy running-config startup-config