交換技術之 交換機間同步Vlan配置信息 VTP

交換技術之 交換機間同步Vlan配置信息 VTP



1.目的:


  • 解決多個交換機之間Vlan配置信息的同步(不包括哪些接口屬於哪個vlan ,這個猜需要到具體的交換機上對端口進行配置)


2.原理:


  • 配置一個管理端 Server(所有的vlan配置都在這臺交換機,配置信息會自動同步到客戶端)

  • 配置一個或多個客戶端 Client(不允許創建Vlan的一些信息,只能通過同步服務器端的配置)


3.拓撲圖:


wKiom1lPTm2xqfqFAAAhSVncewg963.png-wh_50


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#


附件有 Cisco PT 腳本

#

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章