16-16
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Chapter 16 Configuring VTP
Configuring VTP
Configuring VTP on a Per-Port Basis
With VTP version 3, you can enable or disable VTP on a per-port basis. You can enable VTP only on
ports that are in trunk mode. Incoming and outgoing VTP traffic are blocked, not forwarded.
Beginning in privileged EXEC mode, follow these steps to enable VTP on a port:
To disable VTP on the interface, use the no vtp interface configuration command.
Switch(config)# interface gigabitethernet 1/0/1
Switch(config-if)# vtp
Switch(config-if)# end
Adding a VTP Client Switch to a VTP Domain
Before adding a VTP client to a VTP domain, always verify that its VTP configuration revision number
is lower than the configuration revision number of the other switches in the VTP domain. Switches in a
VTP domain always use the VLAN configuration of the switch with the highest VTP configuration
revision number. With VTP versions 1 and 2, adding a switch that has a revision number higher than the
revision number in the VTP domain can erase all VLAN information from the VTP server and VTP
domain. With VTP version 3, the VLAN information is not erased.
Beginning in privileged EXEC mode, follow these steps to verify and reset the VTP configuration
revision number on a switch before adding it to a VTP domain:
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 interface interface-id Identify an interface, and enter interface configuration mode.
Step 3 vtp Enable VTP on the specified port.
Step 4 end Return to privileged EXEC mode.
Step 5 show running-config interface
interface-id Verify the change to the port.
Step 6 show vtp status Verify the configuration.
Command Purpose
Step 1 show vtp status Check the VTP configuration revision number.
If the number is 0, add the switch to the VTP domain.
If the number is greater than 0, follow these steps:
a. Write down the domain name.
b. Write down the configuration revision number.
c. Continue with the next steps to reset the switch configuration revision number.
Step 2 configure terminal Enter global configuration mode.
Step 3 vtp domain domain-name Change the domain name from the original one displayed in Step 1 to a new name.
Step 4 end The VLAN information on the switch is updated and the configuration revision
number is reset to 0. You return to privileged EXEC mode.