|
Command or Action |
Purpose |
Step 1 |
configure terminal
Example:
Switch# configure terminal
|
Enters global configuration mode on Switch A. |
Step 2 |
vtp domain domain-name
Example:
Switch(config)# vtp domain workdomain
|
Configures a VTP administrative domain. The domain name can be 1 to 32 characters. |
Step 3 |
vtp mode server
Example:
Switch(config)# vtp mode server
|
Configures Switch A as the VTP server. |
Step 4 |
end
Example:
Switch(config)# end
|
Returns to privileged EXEC mode. |
Step 5 |
show vtp status
Example:
Switch# show vtp status
|
Verifies the VTP configuration on both Switch A and Switch B. In the display, check the VTP Operating Mode and the VTP Domain Name fields. |
Step 6 |
show vlan
Example:
Switch# show vlan
|
Verifies that the VLANs exist in the database on Switch A. |
Step 7 |
configure terminal
Example:
Switch# configure terminal
|
Enters global configuration mode. |
Step 8 |
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
|
Defines the interface to be configured as a trunk, and enters interface configuration mode. |
Step 9 |
switchport mode trunk
Example:
Switch(config-if)# switchport mode trunk
|
Configures the port as a trunk port. |
Step 10 |
end
Example:
Switch(config-if)# end
|
Returns to privileged EXEC mode. |
Step 11 |
show interfaces interface-id switchport
Example:
Switch# show interfaces gigabitethernet1/0/1 switchport
|
Verifies the VLAN configuration. |
Step 12 |
Repeat the above steps on Switch A for a second port in the switch or switch stack. |
|
Step 13 |
Repeat the above steps on Switch B to configure the trunk ports that connect to the trunk ports configured on Switch A. |
|
Step 14 |
show vlan
Example:
Switch# show vlan
|
When the trunk links come up, VTP passes the VTP and VLAN information to Switch B. This command verifies that Switch B has learned the VLAN configuration. |
Step 15 |
configure terminal
Example:
Switch# configure terminal
|
Enters global configuration mode on Switch A. |
Step 16 |
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
|
Defines the interface to set the STP port priority, and enters interface configuration mode. |
Step 17 |
spanning-tree vlan vlan-range port-priority priority-value
Example:
Switch(config-if)# spanning-tree vlan 8-10 port-priority 16
|
Assigns the port priority for the VLAN range specified. Enter a port priority value from 0 to 240. Port priority values increment by 16. |
Step 18 |
exit
Example:
Switch(config-if)# exit
|
Returns to global configuration mode. |
Step 19 |
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/2
|
Defines the interface to set the STP port priority, and enters interface configuration mode. |
Step 20 |
spanning-tree vlan vlan-range port-priority priority-value
Example:
Switch(config-if)# spanning-tree vlan 3-6 port-priority 16
|
Assigns the port priority for the VLAN range specified. Enter a port priority value from 0 to 240. Port priority values increment by 16. |
Step 21 |
end
Example:
Switch(config-if)# end
|
Returns to privileged EXEC mode. |
Step 22 |
show running-config
Example:
Switch# show running-config
|
Verifies your entries. |
Step 23 |
copy running-config startup-config
Example:
Switch# copy running-config startup-config
|
(Optional) Saves your entries in the configuration file. |