Step 1 | switch#
configure
terminal
|
Enters global
configuration mode.
|
Step 2 | switch(config)#
feature
vtp
|
Enables VTP on
the device. The default is disabled.
|
Step 3 | switch(config)#
vtp
domain
domain-name
|
Specifies the
name of the VTP domain that you want this device to join. The default is blank.
|
Step 4 | switch(config)#
vtp
version {1 |
2 |
3}
|
Sets the VTP
version that you want to use. The default is version 1.
|
Step 5 | switch(config)#
vtp mode
{client |
server
|
transparent |
off}
[vlan |
mst |
unknown]
|
Sets the VTP
mode to client, server, transparent, or off. The default server mode is for
vlan instance and transparent is for mst instance.
|
Step 6 | switch(config)#
vtp
interface
interface-name [only]
|
Configures the
interface name used by the VTP updater for this device.
|
Step 7 | switch(config)#
vtp
file
file-name
|
Specifies the
ASCII filename of the IFS file system file where the VTP configuration is
stored.
|
Step 8 | switch(config)#
vtp
password
password-value [
hidden
|
secret]
Example: For
Hidden:
Device(config)# vtp password helping hidden
Generating the secret associated to the password.
Device# exit
Device# show vtp password
VTP Password: 89914640C8D90868B6A0D8103847A733
Example: For
Secret:
Device(config)# vtp password 89914640C8D90868B6A0D8103847A733 secret
Device# exit
Device# show vtp password
VTP Password: 89914640C8D90868B6A0D8103847A733
|
Specifies the
password for the VTP administrative domain. Default value is taken from
vlan.dat.
The following
options are applicable only on VTP V3:
-
Hidden–Password is not saved as clear text in vlan.data file.
Instead, a hexadecimal secret key generated from the password is saved. This is
displayed as the output of the
show vtp
password.
-
Secret–Use
this keyword to directly configure the 32-character hexadecimalsecret key.
System administrators can distribute this secret key instead of the clear text
password.
Note
|
This command
is applicable for VTP version 3 only.
|
|
Step 9 | switch(config)#
exit
|
Exits the
configuration submode.
|
Step 10 | switch#
vtp
primary [feature] [force]
Example:
Device# vtp primary vlan
Enter VTP password:
This switch is becoming Primary server for vlan feature in the VTP domain
VTP Database Conf Switch ID Primary Server Revision System Name
------------ ---- -------------- -------------- -------- --------------------
VLANDB Yes 00d0.00b8.1400=00d0.00b8.1400 1 stp7
Do you want to continue (y/n) [n]? y
|
This command
changes the operational state of a secondary server to primary and advertises
the information to the entire VTP domain. If the password is configured as
hidden, the user is prompted to re-enter the password after this command.
Before the
device takes over the role of primary, it attempts to discover servers that
conflict this information and follows another primary server. If conflicting
servers are discovered, the user must reconfirm the takeover of operational
state and the subsequent overwriting of configuration.
Note
|
This command
is applicable for VTPv3 only.
|
|
Step 11 | switch#
show vtp
status
| (Optional)
Displays
information about the VTP configuration on the device, such as the version,
mode, and revision number.
|
Step 12 | switch#
show vtp
counters
| (Optional)
Displays
information about VTP advertisement statistics on the device.
|
Step 13 | switch#
show vtp
interface
| (Optional)
Displays the
list of VTP-enabled interfaces.
|
Step 14 | switch#
show vtp
password
| (Optional)
Displays the
password for the management VTP domain.
|
Step 15 | switch#
show vtp
devices [conflict]
Example:
Device# show vtp devices
Gathering information from the domain, please wait.
VTP Database Conf switch ID Primary Server Revision System Name
lict
------------ ---- -------------- -------------- ---------- ----------------------
VLAN Yes 00b0.8e50.d000 000c.0412.6300 12354 main.cisco.com
MST No 00b0.8e50.d000 0004.AB45.6000 24 main.cisco.com
VLAN Yes 000c.0412.6300=000c.0412.6300 67 qwerty.cisco.com
| (Optional)
This is a VTP
version 3 command that displays information about neighbor switches. The
information is not learned from the summary packet used for regular VTP
packets. This command sends out a separate packet to collect information
regarding neighbor switches running VTP version 3.
|
Step 16 | switch#
copy
running-config startup-config
| (Optional)
Copies the
running configuration to the startup configuration.
|