16-13
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Chapter 16 Configuring VTP Configuring VTP
To return a switch in another mode to VTP server mode, use the no vtp mode global configuration
command. To return the switch to a no-password state, use the no vtp password global configuration
command.
This example shows how to configure the switch as a VTP server with the domain name eng_group and
the password mypassword:
Switch(config)# vtp domain eng_group
Setting VTP domain name to eng_group.
Switch(config)# vtp mode server
Setting device to VTP Server mode for VLANS.
Switch(config)# vtp password mypassword
Setting device VLAN database password to mypassword.
Switch(config)# end
Configuring a VTP Version 3 Password
Beginning in privileged EXEC mode, follow these steps to configure the password when using VTP
version 3:
To clear the password, enter the no vtp password global configuration command.
This example shows how to configure a hidden password and how it appears.
Switch(config)# vtp password mypassword hidden
Generating the secret associated to the password.
Switch(config)# end
Switch# show vtp password
VTP password: 89914640C8D90868B6A0D8103847A733
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 vtp password password [hidden |
secret]
(Optional) Set the password for the VTP domain. The password can be 8 to
64 characters.
(Optional) hidden—Enter hidden to ensure that the secret key
generated from the password string is saved in the nvam:vlan.dat file.
If you configure a takeover by configuring a VTP primary server, you
are prompted to reenter the password.
(Optional) secret—Enter secret to directly configure the password.
The secret password must contain 32 hexadecimal characters.
Step 3 end Return to privileged EXEC mode.
Step 4 show vtp password Verify your entries.
Step 5 copy running-config startup-config (Optional) Save the configuration in the startup configuration file.