VTP实现VLAN同步
一:实验要求:
在以下两台交换机上配置VTP,其中SW1为服务模式,SW2为客户机模式,VTP的域名为crshi 密码为ceshi。在SW1上配置VLAN2 和VLAN 3.
二:所需设备:
两台交换机
三:技术解释:
VTP是一种消息协议,它使用第二层帧,在交换机之间传递VLAN信息,被称为VTP通告,有了VTP,就可以在一台交换机上集成修改VLAN配置。所做的修改会被自动转播到网络上的其他交换机上,从而实现VLAN之间配置的一直性!
四:实验拓扑:
五:实验步骤:
1.开启所有设备
2.优化模拟器
选择R1路由器终端,终端特权模式下输入后,关闭终端,右击设备选IDLE PC选择带*的,单击OK完成优化
3.在SW1上配置VTP
SW1#conf t
SW1(config)#vtp domain ceshi
SW1(config)#vtp mode server
SW1(config)#vtp password ceshi
4.查看SW1的VTP配置信息
SW1(config)#do show vtp status
VTP Version: 2
Configuration Revision: 0
Maximum VLANs supported locally : 36
Number of existing VLANs: 5
VTP Operating Mode: Server
VTP Domain Name: ceshi
VTP Pruning Mode: Disabled
VTP V2 Mode : Disabled
VTP Traps Generation: Disabled
MD5 digest: 0xE9 0xD8 0x6D 0x35 0xAC 0x17 0xEA 0x4A
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
5.在SW1和SW2之间配置Trunk
SW1(config)#int fa 1/1
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulation dot1q
SW2(config)#int fa 1/1
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport trunk encapsulation dot1q
6.在SW2配置VTP
SW2(config)#vtp domain ceshi
SW2(config)#vtp password ceshi
SW2(config)#vtp mode client
7.在SW1 VTPserver 中配置VLAN 2 和VLAN3
SW1(config)#vlan 2
SW1(config-vlan)#ex
SW1(config)#vlan 3
SW1(config-vlan)#ex
SW1(config)#do show vlan-s b
8.在SW2 VTP client中查看是否同步
SW2(config)#do show vlan-s b
实验完成
孤狼
2014年2月20日 22:45:22