VTP is a message protocol that transmits VLAN information between switches.
The switches in the same VTP domain share their VLAN information.
-------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
VTP mode
Server mode//You can create modified VLAN information with at least one server per VTP domain//
Client mode//cannot modify VLAN information through administrator creation, can only listen for VTP notifications from other switches and modify its own VTP configuration//
Transparent mode//does not participate in VTP advertisement, it can create modified VLAN information, does not advertise its VLAN information, VTP notification to other switches will only forward will not learn//
--------------------------------------------------------------------------------------------------------------- ------
--------------------------------------------------------------------------------------------------------------- -------
Information that VTP advertises
1, admin domain
2, Version number
3, Configuration change number
4, the VLAN it knows
5, the parameters for each VLAN
------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
method to change the configuration change number to 0
1. Turn the VTP mode of the switch into transparent mode and then into server mode or client mode
2. Change the VTP domain name of the switch once, and then change it back.
------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
VTP advertisement Type
1. Summary notice//used to inform the edge switch of the current VTP domain name and configuration change number, by default, not 5 minutes to send//
2. Subset notification//When a server-mode switch adds or removes VLANs, a summary advertisement is sent first, then a subset is advertised, and a subset advertises the information that includes the VLAN//
3. Notification request//When the switch restarts, the VTP domain name changes and receives a summary notice that is higher than its own configuration modification number regrets sending an advertisement request//
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
VTP pruning
Reduce the amount of diffuse traffic that is not necessary
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
Configuration of VTP
In the global mode
VTP domain name//create VTP domains//
VTP mode server|client|transparent//Configuring VTP Modes//
VTP password password//config VTP password//
VTP pruning//configuring VTP Pruning//
VTP version 2//configuring VTP Versions//
Switch VTP notification configuration