交换技术之 交换机间同步Vlan配置信息 VTP
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了交换技术之 交换机间同步Vlan配置信息 VTP相关的知识,希望对你有一定的参考价值。
交换技术之 交换机间同步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#
#
本文出自 “Frog的技术归档” 博客,请务必保留此出处http://frogtwo.blog.51cto.com/3805708/1941672
以上是关于交换技术之 交换机间同步Vlan配置信息 VTP的主要内容,如果未能解决你的问题,请参考以下文章
Cisco 的基本配置实例之四----vlan的规划及配置(核心交换机)