交换技术之 交换机间同步Vlan配置信息 VTP1.目的:解决多个交换机之间Vlan配置信息的同步(不包括哪些接口属于哪个vlan ,这个猜需要到具体的交换机上对端口进行配置)2.原理:配置一个管理端
.
交换技术之 交换机间同步Vlan配置信息 VTP
1.目的:
解决多个交换机之间Vlan配置信息的同步(不包括哪些接口属于哪个vlan ,这个猜需要到具体的交换机上对端口进行配置)
2.原理:
配置一个管理端 Server(所有的vlan配置都在这台交换机,配置信息会自动同步到客户端)
配置一个或多个客户端 Client(不允许创建Vlan的一些信息,只能通过同步服务器端的配置)
3.拓扑图:
4.配置命令:
VTP-SERVER(config)#vtp domain frogtwo
VTP-SERVER(config)#vtp mode server [ client ]
VTP-SERVER(config)#vtp version 2
5.配置步骤:
S1作为服务器端配置
VTP-SERVER#sh vtp status VTP Version : 2Configuration Revision : 5Maximum VLANs supported locally : 255Number of existing VLANs : 6VTP Operating Mode : ServerVTP Domain Name : frogtwoVTP Pruning Mode : DisabledVTP V2 Mode : EnabledVTP Traps Generation : DisabledMD5 digest : 0x34 0xE5 0x00 0x77 0x70 0xBC 0x8A 0xBC Configuration last modified by 0.0.0.0 at 3-1-93 00:12:32Local updater ID is 0.0.0.0 (no valid interface found)VTP-SERVER#
--------------------------------------------------------------------------
#必须保证交换机间的链路是 Trunk ,否则无法同步Vlan信息
VTP-SERVER#sh interfaces trunk Port Mode Encapsulation Status Native vlanFa0/1 on 802.1q trunking 1Fa0/2 on 802.1q trunking 1Port Vlans allowed on trunkFa0/1 1-1005Fa0/2 1-1005Port Vlans allowed and active in management domainFa0/1 1,10Fa0/2 1,10Port Vlans in spanning tree forwarding state and not prunedFa0/1 1,10Fa0/2 1,10VTP-SERVER#
S2作为客户端1
VTP-CLIENT1#sh vtp status VTP Version : 2Configuration Revision : 5Maximum VLANs supported locally : 255Number of existing VLANs : 6VTP Operating Mode : ClientVTP Domain Name : frogtwoVTP Pruning Mode : DisabledVTP V2 Mode : EnabledVTP Traps Generation : DisabledMD5 digest : 0x34 0xE5 0x00 0x77 0x70 0xBC 0x8A 0xBC Configuration last modified by 0.0.0.0 at 3-1-93 00:12:32VTP-CLIENT1#
--------------------------------------------------------------------------
VTP-CLIENT1#show interfaces trunk Port Mode Encapsulation Status Native vlanFa0/1 on 802.1q trunking 1Port Vlans allowed on trunkFa0/1 1-1005Port Vlans allowed and active in management domainFa0/1 1,10Port Vlans in spanning tree forwarding state and not prunedFa0/1 1,10VTP-CLIENT1#
S3作为客户端2
VTP-CLIENT2#sh vtp status VTP Version : 2Configuration Revision : 5Maximum VLANs supported locally : 255Number of existing VLANs : 6VTP Operating Mode : ClientVTP Domain Name : frogtwoVTP Pruning Mode : DisabledVTP V2 Mode : EnabledVTP Traps Generation : DisabledMD5 digest : 0x34 0xE5 0x00 0x77 0x70 0xBC 0x8A 0xBC Configuration last modified by 0.0.0.0 at 3-1-93 00:12:32VTP-CLIENT2#
--------------------------------------------------------------------------
VTP-CLIENT2#show interfaces trunk Port Mode Encapsulation Status Native vlanFa0/1 on 802.1q trunking 1Port Vlans allowed on trunkFa0/1 1-1005Port Vlans allowed and active in management domainFa0/1 1,10Port Vlans in spanning tree forwarding state and not prunedFa0/1 1,10VTP-CLIENT2#
附件有 Cisco PT 脚本
#
.