交换技术之 交换机间同步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 : 2 Configuration Revision : 5 Maximum VLANs supported locally : 255 Number of existing VLANs : 6 VTP Operating Mode : Server VTP Domain Name : frogtwo VTP Pruning Mode : Disabled VTP V2 Mode : Enabled VTP Traps Generation : Disabled MD5 digest : 0x34 0xE5 0x00 0x77 0x70 0xBC 0x8A 0xBC Configuration last modified by 0.0.0.0 at 3-1-93 00:12:32 Local 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 vlan Fa0/1 on 802.1q trunking 1 Fa0/2 on 802.1q trunking 1 Port Vlans allowed on trunk Fa0/1 1-1005 Fa0/2 1-1005 Port Vlans allowed and active in management domain Fa0/1 1,10 Fa0/2 1,10 Port Vlans in spanning tree forwarding state and not pruned Fa0/1 1,10 Fa0/2 1,10 VTP-SERVER#
- S2作为客户端1
VTP-CLIENT1#sh vtp status VTP Version : 2 Configuration Revision : 5 Maximum VLANs supported locally : 255 Number of existing VLANs : 6 VTP Operating Mode : Client VTP Domain Name : frogtwo VTP Pruning Mode : Disabled VTP V2 Mode : Enabled VTP Traps Generation : Disabled MD5 digest : 0x34 0xE5 0x00 0x77 0x70 0xBC 0x8A 0xBC Configuration last modified by 0.0.0.0 at 3-1-93 00:12:32 VTP-CLIENT1#
--------------------------------------------------------------------------
VTP-CLIENT1#show interfaces trunk Port Mode Encapsulation Status Native vlan Fa0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Fa0/1 1-1005 Port Vlans allowed and active in management domain Fa0/1 1,10 Port Vlans in spanning tree forwarding state and not pruned Fa0/1 1,10 VTP-CLIENT1#
- S3作为客户端2
VTP-CLIENT2#sh vtp status VTP Version : 2 Configuration Revision : 5 Maximum VLANs supported locally : 255 Number of existing VLANs : 6 VTP Operating Mode : Client VTP Domain Name : frogtwo VTP Pruning Mode : Disabled VTP V2 Mode : Enabled VTP Traps Generation : Disabled MD5 digest : 0x34 0xE5 0x00 0x77 0x70 0xBC 0x8A 0xBC Configuration last modified by 0.0.0.0 at 3-1-93 00:12:32 VTP-CLIENT2#
--------------------------------------------------------------------------
VTP-CLIENT2#show interfaces trunk Port Mode Encapsulation Status Native vlan Fa0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Fa0/1 1-1005 Port Vlans allowed and active in management domain Fa0/1 1,10 Port Vlans in spanning tree forwarding state and not pruned Fa0/1 1,10 VTP-CLIENT2#
#
时间: 2024-10-20 22:20:05