![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/6/30/63096e50-8ee1-4c84-b87d-32eeabc07e61/63096e50-8ee1-4c84-b87d-32eeabc07e61-bg180.png)
13-14
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 13 Configuring VLANs, VTP, and VMPS
VLAN Trunking Protocol
Configuring VTP
These sections describe how to configure VTP:
• Configuring VTP Global Parameters, page 13-14
• Configuring the VTP Mode, page 13-16
• Starting a Takeover, page 13-19
• Displaying VTP Statistics, page 13-19
• Displaying VTP Devices in a Domain, page 13-20
Configuring VTP Global Parameters
These sections describe configuring the VTP global parameters:
• Configuring a VTP Password, page 13-14
• Enabling VTP Pruning, page 13-15
• Enabling the VTP Version Number, page 13-15
Note You can enter the VTP global parameters in either global configuration mode or in EXEC mode.
Configuring a VTP Password
To configure the VTP global parameters, use these commands:
This example shows one way to configure a VTP password in global configuration mode:
Switch# configure terminal
Switch(config)# vtp password WATER
Setting device VLAN database password to WATER.
Switch#
Command Purpose
Switch(config)# vtp password
password_string [hidden | secret]
Sets a password, which can be from 8 to
64 characters long, for the VTP domain.
In VTP version 3 the keywords hidden and secret
are available.
• If the hidden keyword is used, the secret key
generated from the password string is saved
in the const_nvram:vlan.dat file. If a takeover
command is issued, that password must be
reentered.
• If the secret keyword is used, the password
secret key can be directly configured. The
secret password must contain 32
hexadecimal characters.
Switch(config)# no vtp password
Clears the password.