2-691
Catalyst 6500 Series Switch Command Reference—Release8.1
78-15474-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
set vtp
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines The following guidelines apply to VTP versions 1, 2, and 3:
VTP supports four different modes: server, client, transparent, and off. If you make a change to the
VTP or VLAN configuration on a switch in server mode, that change is propagated to all of the
switches in the same VTP domain.
If the VTP password has already been defined, entering passwd 0 (zero) clears the VTP password.
If you enter the hidden keyword after you specify the VTP password, the password does not appear
in the configuration; an encrypted hexadecimal value appears in place of the password.
If the receiving switch is in server mode and its revision number is higher than the sending switch,
the configuration is not changed. If the revision number is lower, the configuration is duplicated.
VTP can be set to either server or client mode only when dynamic VLAN creation is disabled.
If the receiving switch is in server mode, the configuration is not changed.
If the receiving switch is in client mode, the client switch changes its configurat ion to duplicate the
configuration of the server. Make sure to make all VTP or VLAN configuration changes on a switch
in server mode.
If the receiving switch is in transparent mode, the configuration is not changed. Switches in
transparent mode do not participate in VTP. If you make VTP or VLAN configuration changes on a
switch in transparent mode, the changes are not propagated to the other switches in the network.
When you configure the VTP off mode, the switch functions the same as in VTP transparent mode
except that VTP advertisements are not forwarded.
You cannot enable VTP pruning and MISTP at the same time.
Use the clear config all command to remove the domain from the switch.
Caution Be careful when you use the clear config all command. This command clears the entire switch
configuration, not just the VTP domain.
The set vtp command is not supported by the NAM.
The following guidelines apply only to VTP versions 1 and 2:
All switches in a VTP domain must run the same version of VTP. VTP version 1 and VTP version 2
do not operate on switches in the same domain.
If all switches in a VTP domain are VTP version 2-capable, you only need to enab le VTP version 2
on one switch by using the set vtp version 2 command. The version number is then propogated to
other version 2-capable switches in the VTP domain.
The pruning keyword is used to enable or disable VTP pruning for the entire VTP domain. VTP
pruning causes information about each pruning-eligible VLAN to b e removed from VTP updates if
there are no stations belonging to that VLAN out a particular switch port. Use the set vtp
pruneeligible and clear vtp pruneeligible commands to specify which VLANs should or should
not be pruned when pruning is enabled for the domain.