Assume that there is a VLAN connection as shown in Figure 3, the specific configuration is as follows:
· Configuration as a VTP server switch 1
Switch1 # Configure Terminal
Switch1 (COFIG) #ip Address 10.5.5.11 255.255.255.0
Switch1 (cofig) #ip defaul-gateway 10.5.5.3
Switch1 (COFIG) #VTP Server Domain Hartsfield Purning Enable
Switch1 (Cofig) #VLAN 2 Name VLAN2
Switch1 (COFIG) #VLAN 3 Name VLAN3
Switch1 (cofig) #interface E 0/5
Switch1 (Cofig-IF) # Valn-MemberShip Static 2
Switch1 (Cofig) #interface E 0/6
Switch1 (Cofig-IF) # Valn-MemberShip Static 2
......
Switch1 (cofig) #interface e 0/9
Switch1 (COFIG-IF) # Valn-Membership Static 3
Switch1 (config) #interface e fa 0/26
Switch1 (config-if) #Trunk on
Switch1 (config-if) # vlan-membershi static 1
......
Switch1 (config) #interface e fb 0/27
Switch1 (config-if) #Trunk on
Switch1 (config-if) # vlan-membershi static 1
......
· Configuration as VTP Customer Switch 2
Switch2 # Configure Terminal
Switch2 (Cofig) #ip Address 10.5.5.12 255.255.255.0
Switch2 (cofig) #ip defaul-gateway 10.5.5.3
Switch2 (Cofig) #VTP Client
Switch2 (Cofig) #interface E 0/5
Switch2 (Cofig-IF) # Valn-MemberShip Static 3
Switch2 (Cofig) #interface E 0/6
Switch2 (Cofig-IF) # Valn-MemberShip Static 3
Switch2 (Cofig) #interface E 0/7
Switch2 (Cofig-IF) # Valn-MemberShip Static 3
Switch2 (Cofig) #Iinterface E 0/8
Switch2 (Cofig-IF) # Valn-MemberShip Static 3
Switch2 (Cofig) #interface E 0/9
Switch2 (Cofig-IF) # Valn-MemberShip Static 3
......
Switch2 (config) #interface e fa 0/27
Switch2 (config-if) #trunk on
Switch2 (config-if) # vlan-membershi static 1
Switch2 (config-if) # vlan-membershi static 3
Note: There is no domain name in the switch 2 configuration, which may learn through the first notice;
There is no need to define the VLAN in the switch 2 configuration, and it is not defined in VTP client mode.
Cutting in switch 1 is enabled, VTP crops VLAN2 from switch 2, because there is no VLAN 2 port in switch 2.
To verify new configuration or understand
VTP
Configuration information can use commands: