In the previous section, we said that multiple devices to create more than one VLAN need to use VTP, then what is this VTP, the following according to my personal understanding and chatter:
TP (VLAN trunking Protocol): VLAN trunking protocol, also known asVirtual local Area networkRoad Protocol. It is a Cisco private protocol. function is more than 10 unitsSwitchin theEnterprise Network, the VLAN workload is large, you can use the VTP protocol to configure a switch as a VTP server (server side), and the rest of the switches are configured as VTP clients (the client) so that they can automatically learn the VLAN information on the server.
VTP has three modes of operation: VTP Server, VTP Client, and VTP Transparent.
A vtp domain , also known as a VLAN management domain, consists of more than one switch that shares a VTP domain name to each other. That is, a VTP domain is a set of switches that have the same VTP domain name and are interconnected by relay links.
The following are requirements for a VTP domain:
1. Each switch within the domain must use the same domain name, whether it is implemented by configuration or automatically learned by the exchange.
2, the switch must be adjacent, that is, the adjacent switch needs to have the same domain name.
3. The relay link must be configured between all switches.
If either of these conditions is not satisfied, the VTP domain cannot be connected and the information cannot be transmitted across the detached part.
VTP mode has 3 server mode (server) client mode (client) transparent mode (Transparent)
Server Mode (server)
Provide VTP messages: include VLAN ID and name information
Learn the VTP messages for the same domain name
Forward VTP messages for the same domain name
VLAN VLAN information can be added, removed, and changed to write NVRAM
The extension cannot be used in this mode
Guest Mode (client)
Request a VTP message
Learn the VTP messages for the same domain name
Forward VTP messages for the same domain name
VLAN VLAN information cannot be added, removed, and changed not written to NVRAM
The vid provided by the enhanced software image cannot be used in this mode, that is, only the value of 2-1001 is used. The 1,1002-1005 are system default vid. To use a value of 1006-4096 for vid, you can only turn off VTP or use transparent mode.
transparent Mode (Transparent)
Do not provide VTP messages
Do not learn VTP messages
Forwarding VTP messages
VLANs can be added, removed, and changed, only valid VLAN information is written to nvram locally
Implementation we also use an experiment
Experiment:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/33/wKiom1X3oBehAswWAAEt5jmu978320.jpg "title=" capture. PNG "alt=" Wkiom1x3obehaswwaaet5jmu978320.jpg "/>
The specific configuration is as follows
SW 1 2 3 4 the VTP domain name and password must be the same
1, SW1
Sw1#vlan data into VLAN configuration mode
SW1 (VLAN) #vtp domain AAA configuration VTP domain name AAA
SW1 (VLAN) #vtp server. Configuring VTP for Server Mode
SW1 (VLAN) #vtp password 123 configuration VTP password is 123
Exit
Config
int range F0/1-3
Switch mode trunk enters 1-3 port configuration interface mode for trunk
2, SW2
VLAN data
VTP domain AAA Configuration VTP domainname for AAA
VTP Client configuration VTP to client mode
VTP Password 123 configuration VTP password is 123
Exit
Config
int range F0/1
Switch mode trunk Configuration Interface mode is Trun
3, SW3
VLAN data
VTP domain AAA Configuration VTP domainname for AAA
VTP Client configuration VTP to client mode
VTP Password 123 configuration VTP password is 123
Exit
Config
int range F0/1
Switch mode trunk Configuration Interface mode is Trun
4, SW4
VLAN data
VTP domain AAA Configuration VTP domainname for AAA
VTP Client configuration VTP to client mode
VTP Password 123 configuration VTP password is 123
Exit
Config
int range F0/1
Switch mode trunk Configuration Interface mode is Trun
Finally create VLAN on SW1 2 3 4
Use the show VTP staus command to view VTP configuration information on SW 1 2 3 4, respectively, after configuration is complete
Then use show VLAN-SW to view the VLAN information, if configured correctly, then SW1 2 3 4 will have VLAN 2 3 4
This article from the "It Layman teahouse" blog, reproduced please contact the author!
"Ti layman" network knowledge note six VTP principle and configuration