14-12
Catalyst 3750 SwitchSoftware Configuration Guide
OL-8550-09
Chapter14 Configuring VTP
Configuring VTP
Beginning in privileged EXEC mode, follow these steps to configure the VTP mode:
When you configure a domain name, it cannot be removed; you can only reassign a switch to a different
domain.
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
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 vtp domain domain-name Configure the VTP administrative-domain name. The name can be 1to 32
characters. All switches operating in VTP server or client mode under the
same administrative responsibility must be configured with the same
domain name.
This command is optional for modes other than server mode. VTP server
mode requires a domain name. If the switch has a trunk connection to a
VTP domain, the switch learns the domain name from the VTP server in the
domain.
You should configure the VTP domain before configuring other VTP
parameters.
Step3 vtp mode {client | server |
transparent | off} {vlan | mst |
unknown}
Configure the switch for VTP mode (client, server, transparent or off).
(Optional) Configure the database:
vlan—the VLAN database is the default if none are configured.
mst—the multiple spanning tree (MST) database.
unknown—an unknown database type.
Step4 vtp password password (Optional) Set the password for the VTP domain. The password can be 8 to
64 characters. If you configure a VTP password, the VTP domain does not
function properly if you do not assign the same password to each switch in
the domain.
See the “Configuring a VTP Version 3 Password” section on page14-13 for
options available with VTP version 3.
Step5 end Return to privileged EXEC mode.
Step6 show vtp status Verify your entries in the VTP Operating Mode and the VTP Domain Name
fields of the display.
Step7 copy running-config startup-config (Optional) Save the configuration in the startup configuration file.
Note Only VTP mode and domain name are saved in the switch running
configuration and can be copied to the startup configuration file.