VTP of cisco
VTP (Virtual Local area Network Relay Protocol) is a private protocol of Cisco. Through the VTP protocol, the switches can transfer messages to each other, thus realizing the synchronization and unified management of VLAN.
VTP example:
R3:
R3 (config) # int F1 Plus 1 # trunk mode
R3 (config-if) # switchport mode trunk
R3 (config) # vtp domain cisco # all VTP-enabled switches have the same domain name
R3 (config) # vtp password cisco # VTP password is identical
At least one of the R3 (config) # vtp mode server # VTP domains is in server mode to facilitate
R3 (config) # vtp pruning create, modify, delete VLAN
Pruning switched on
R3 (config) # vlan 10 # New VLAN
R3 (config-vlan) # name vlan10
R3 (config-vlan) # vlan 20
R3 (config-vlan) # name vlan20
R3 (config) # int vlan 1 # Management IP
R3 (config-if) # ip add 172.16.1.1 255.255.255.0
R3 (config-if) # no sh
R3#sh vlan-switch # View VLAN
VLAN Name Status Ports
1 default active Fa1/0, Fa1/2, Fa1/3, Fa1/4
Fa1/5, Fa1/6, Fa1/7, Fa1/8
Fa1/9, Fa1/10, Fa1/11, Fa1/12
Fa1/13, Fa1/14, Fa1/15
10 vlan10 active
20 vlan20 active
R3#show vtp status # View VTP status information
VTP Version: 2
Configuration Revision: 3
Maximum VLANs supported locally: 36
Number of existing VLANs: 7
VTP Operating Mode: Server
VTP Domain Name: cisco
VTP Pruning Mode: Enabled
VTP V2 Mode: Disabled
VTP Traps Generation: Disabled
MD5 digest: 0x0A 0x68 0x1E 0xCC 0xFC 0xF2 0x7E 0x6F
Configuration last modified by 0.0.0.0 at 3-1-02 00:21:50
Local updater ID is 172.16.1.1 on interface Vl1 (lowest numbered VLAN interface found)
R4, R5 configuration:
R4 (config) # int f1max 1
R4 (config-if) # switchport mode trunk
R4 (config) # int f1max 2
R4 (config-if) # sw mo trunk
R4 (config) # vtp domain cisco
R4 (config) # vtp password cisco
R4 (config) # vtp mode client
Check whether R4 and R5 synchronize VLAN:
R4#show vlan-switch
VLAN Name Status Ports
1 default active Fa1/0, Fa1/3, Fa1/4, Fa1/5
Fa1/6, Fa1/7, Fa1/8, Fa1/9
Fa1/10, Fa1/11, Fa1/12, Fa1/13
Fa1/14, Fa1/15
10 vlan10 active
20 vlan20 active
R5#show vlan-swi
VLAN Name Status Ports
1 default active Fa1/0, Fa1/1, Fa1/3, Fa1/4
Fa1/5, Fa1/6, Fa1/7, Fa1/8
Fa1/9, Fa1/10, Fa1/11, Fa1/12
Fa1/13, Fa1/14, Fa1/15
10 vlan10 active
20 vlan20 active
View VTP status:
R4#sh vtp status
VTP Version: 2
Configuration Revision: 3
Maximum VLANs supported locally: 36
Number of existing VLANs: 7
VTP Operating Mode: Client
VTP Domain Name: cisco
VTP Pruning Mode: Enabled
VTP V2 Mode: Disabled
VTP Traps Generation: Disabled
MD5 digest: 0x0A 0x68 0x1E 0xCC 0xFC 0xF2 0x7E 0x6F
Configuration last modified by 0.0.0.0 at 3-1-02 00:21:50