(Optional) Sets the mode for the multiple spanning tree (MST) VTP database (only
VTP Version 3).
mst
(Optional) Sets the mode for unknown VTP databases (only VTP Version 3).unknown
(Optional) Sets the mode for VLAN VTP databases. This is the default (only VTP
Version 3).
vlan
Sets the administrative domain password for the generation of the 16-byte secret value
used in MD5 digest calculation to be sent in VTP advertisements and to validate received
VTP advertisements. The password can be an ASCII string from 1 to 32 characters.
The password is case sensitive.
password password
(Optional) Specifies that the key generated from the password string is saved in the
VLAN database file. When the hidden keyword is not specified, the password string
is saved in clear text. When the hidden password is entered, you need to reenter the
password to issue a command in the domain. This keyword is supported only in VTP
Version 3.
hidden
(Optional) Allows the user to directly configure the password secret key (only VTP
Version 3).
secret
Enables VTP pruning on the device.pruning
Sets the VTP Version to Version 1, Version 2, or Version 3.
version number
Command Default
The default filename is flash:vlan.dat.
The default mode is server mode and the default database is VLAN.
In VTP Version 3, for the MST database, the default mode is transparent.
No domain name or password is defined.
No password is configured.
Pruning is disabled.
The default version is Version 1.
Command Modes
Global configuration
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
When you save VTP mode, domain name, and VLAN configurations in the device startup configuration file
and reboot the device, the VTP and VLAN configurations are selected by these conditions:
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
1067
vtp (global configuration)