Cisco 3560x-24p 参考指南

下载
页码 1188
 
2-939
Catalyst 3750-X and 3560-X Switch Command Reference
OL-21522-02
Chapter 2    Catalyst 3750-X and 3560-X Cisco IOS Commands
vtp (global configuration)
vtp (global configuration)
Use the vtp global configuration command on the switch stack or on a standalone switch to set or modify 
the VLAN Trunking Protocol (VTP) configuration characteristics. Use the no form of this command to 
remove the settings or to return to the default settings.
vtp {domain domain-name | file filename | interface name [only] | mode {client | off | server | 
transparent} [mst | unknown | vlan] | password password [hidden | secret] | pruning | 
version number}
no vtp {file interface | mode [client | off | server | transparent] [mst | unknown | vlan] | 
password | pruning | version}
Syntax Description
domain domain-name
Specify the VTP domain name, an ASCII string from 1 to 32 characters that 
identifies the VTP administrative domain for the switch. The domain name 
is case sensitive.
file filename
Specify the Cisco IOS file system file where the VTP VLAN configuration 
is stored.
interface name
Specify the name of the interface providing the VTP ID updated for this 
device.
only
(Optional) Use only the IP address of this interface as the VTP IP updater.
mode
Specify the VTP device mode as client, server, or transparent.
client
Place the switch in VTP client mode. A switch in VTP client mode is enabled 
for VTP, and can send advertisements, but does not have enough nonvolatile 
storage to store VLAN configurations. You cannot configure VLANs on the 
switch. When a VTP client starts up, it does not send VTP advertisements 
until it receives advertisements to initialize its VLAN database.
off
Place the switch in VTP off mode. A switch in off VTP off mode functions 
the same as a VTP transparent device except that it does not forward VTP 
advertisements on trunk ports.
server
Place the switch in VTP server mode. A switch in VTP server mode is 
enabled for VTP and sends advertisements. You can configure VLANs on the 
switch. The switch can recover all the VLAN information in the current VTP 
database from nonvolatile storage after reboot.
transparent
Place the switch in VTP transparent mode. A switch in VTP transparent 
mode is disabled for VTP, does not send advertisements or learn from 
advertisements sent by other devices, and cannot affect VLAN 
configurations on other devices in the network. The switch receives VTP 
advertisements and forwards them on all trunk ports except the one on which 
the advertisement was received. 
When VTP mode is transparent, the mode and domain name are saved in the 
switch running configuration file, and you can save them in the switch 
startup configuration file by entering the copy running-config startup 
config 
privileged EXEC command.
mst
(Optional) Set the mode for the multiple spanning tree (MST) VTP database 
(only VTP version 3).
unknown 
(Optional) Set the mode for unknown VTP databases (only VTP version 3).