Switch#delete Flash:vlan.dat
Switch#erase Start-config Clear Saved configuration
VTP configuration
The topology diagram is as follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/65/wKioL1UsvPbwGjLjAAB5zXm_t2s457.jpg "title=" VTP " alt= "Wkiol1usvpbwgjljaab5zxm_t2s457.jpg"/>
(1) Configuring the Relay
S1 (config) #interface fastethernet 0/1
S1 (config-if) #switchport mode dynamic desirable
S2 (config) #interface fastethernet 0/1
S2 (config-if) #switchport mode dynamic desirable
S3 (config) #interface fastethernet 0/1
S3 (CONFIG-IF) #switchport mode dynamic desirable
S3 (config) #interface fastethernet 0/2
S3 (CONFIG-IF) #switchport mode dynamic desirable
S3#show Interfaces Trunk
(2) Check the default VTP condition
S1#show VTP Status
(3) Configure S1 for VTP server, configure VTP domain name, create VLAN2
S1 (config) #vtp mode server (configuration S1 as VTP server, which is actually the default)
S1 (config) #vtp domain vtp-test (configure VTP domain name, default is empty)
S1#show VTP Status
S1 (config) #vlan 2
S1 (Config-vlan) #name vlan2-test
S1#show VLAN
Check on S3 and S2.
S3#show VTP Status
S3#show VLAN
S2#show VTP Status
S2#show VLAN
(4) configuring S3 for VTP Transparent
S3 (config) #vtp mode transparent (or S3#vlan database S3 (VLAN) #vtp transparent)
S3#show VTP Status
Create VLAN3 on S3, check VLAN information on S1 and S2
S3 (config) #vlan 3
S3 (Config-vlan) #name test-vlan3
S3#show VLAN
S2#show VLAN
(5) Configuring S2 for VTP Client
S2 (config) #vtp mode client
(6) Configuring a VTP password
S1 (config) #vtp password Xu (Configuring the VTP password for security purposes, to prevent unknown switches from joining the domain.) When you want to increase the switch, if the added switch sets the same VTP password as the VTP password in the domain, you can learn the VLAN information, or you will not be able to learn VLAN information.
S3 (config) #vtp password Xu
S2 (config) #vtp password Xu
S1#show VTP password (display VTP password)
(7) Configure the VTP version to configure only on the server
S1 (config) #vtp version 2
S1#show VTP Status
(8) VTP Domain Name issues
The VLAN information cannot be shared between different VTP domains.
To delete a VLAN command:
Switch (config) #vlan 12
Switch (Config-vlan) #no VLAN 12
A VTP notification with a high revision number (Configuration Revision) overrides the low-revision VTP information, including the revision number and VLAN, and increases each time the VLAN revision number is modified. The revision number defaults to 0, and you can change the VTP domain name to replace the revision number with 0
This article from the "Galaxy | Computer network" blog, declined to reprint!
VTP configuration (virtual LAN relay protocol)