2-659
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set vtp
set vtp
To set the options for VTP, use the set vtp command.
set vtp [domain domain_name] [mode {client | server | transparent | off}] [passwd passwd]
[pruning {enable | disable}] [v2 {enable | disable}]
Syntax Description
Defaults The defaults are as follows: server mode, no password, pruning disable d, a nd v2 disa ble d.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines This command is not supported by the NAM.
This command is not supported on extended-range VLANs.
VTP pruning and MISTP cannot be enabled at the same time.
All switches in a VTP domain must run the same version of VTP. VTP version 1 and VTP version2 do
not operate on switches in the same VTP domain.
If all switches in a domain are VTP version 2-capable, you only need to enable VTP version 2 on one
switch (using the set vtp v2 enable command); the version number is then propagated to the other
version 2-capable switches in the VTP domain.
If the VTP password has already been defined, entering passwd 0 (zero) clea rs t he V TP pa ssword.
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 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.
domain
domain_name (Optional) Defines the name that identifies the VLAN management
domain. The domain_name can be from 1 to 32 characters in length.
mode {client |
server |
transparent | off}
(Optional) Specifies the VTP mode.
passwd passwd (Optional) Defines the VTP password; the VTP password can be from 8 to
64 characters in length.
pruning {enable |
disable}(Optional) Enables or disables VTP pruning for the entire management
domain.
v2 {enable |
disable}(Optional) Enables or disables version 2 mode.