Purpose
Command or Action
Sets the VTP version that you want to use. The default
is version 1.
switch(config)#
vtp version
{
1
|
2
}
Step 4
Sets the VTP mode to client, server, transparent, or
off.
switch(config)#
vtp mode
{
client
|
server
|
transparent
|
off
}
Step 5
Specifies the ASCII filename of the IFS file system
file where the VTP configuration is stored.
switch(config)#
vtp file file-name
Step 6
Specifies the password for the VTP administrative
domain.
switch(config)#
vtp password
password-value
Step 7
Exits the configuration submode.
switch(config)#
exit
Step 8
(Optional)
Displays information about the VTP configuration
on the device, such as the version, mode, and revision
number.
switch#
show vtp status
Step 9
(Optional)
Displays information about VTP advertisement
statistics on the device.
switch#
show vtp counters
Step 10
(Optional)
Displays the list of VTP-enabled interfaces.
switch#
show vtp interface
Step 11
(Optional)
Displays the password for the management VTP
domain.
switch#
show vtp password
Step 12
(Optional)
Copies the running configuration to the startup
configuration.
switch#
copy running-config
startup-config
Step 13
This example shows how to configure VTP in transparent mode for the device:
switch#
config t
switch(config)#
feature vtp
switch(config)#
vtp domain accounting
switch(config)#
vtp version 2
switch(config)#
vtp mode transparent
switch(config)#
exit
switch#
This example shows the VTP status and that the switch is capable of supporting Version 2 and that the switch
is running Version 1:
switch(config)#
show vtp status
VTP Status Information
----------------------
VTP Version
: 2 (capable)
Configuration Revision
: 0
Maximum VLANs supported locally : 1005
Number of existing VLANs
: 502
VTP Operating Mode
: Transparent
VTP Domain Name
:
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
21
Configuring VLANs
Configuring VTP