VLAN Trunking Protocol (VTP)

Cisco交換器中針對VLAN進行集中管理、維護的通訊協定。
目前VTP共有三個版本,且各不相容,因此在同一個VTP Domain中僅能設定為相同版本,並且僅有Server mode的交換器可以進行版本設定。

VTP version 2與version 1差異僅在v2支援Token Ring, Cisco建議在無Token Ring需求的環境下使用v1即可。V3 supports extend VLAN ID. V2之Transparent mode不檢查Domain,因此可做為多個Domain間VTP的Relay。若VTP Domain內設備皆支援V2,則僅需要在其中一部VTP server上設定一次V2。

VTP Domain為sensitive, 即Cisco與cisco為不同Domain, 無法進行其間VLAN DB交換。
VTP Advertisement為VTP協定中進行VLAN訊息交換的封包,其需透過Trunk Port進行宣傳,因此彼此透過VTP進行VLAN管理的交換器間必須有Trunk Port。

VTP三種模式:

  • Server: 可進行VLAN Database的新增刪除修改,VLAN資訊存放於NVRam:vlan.dat
  • Client: 不可進行VLAN Database的新增刪除修改,NVRam:vlan.dat僅存放VTP相關設定資訊(須確認)
  • Transparent: 可進行VLAN Database的新增刪除修改,但僅限於Local,收到VTP Advertisement將會繼續進行宣傳動作而不參與VLAN Database同步。

由於各型交換器支援的VLAN數量上限不同,須透過show vtp status確認VTP Domain中的交換器限制。Cisco文件中針對VTP宣傳VLAN DB時可能會超出某些交換器的VLAN上限的Workarround方式如下(http://www.cisco.com/en/US/tech/tk389/tk689/technologies_tech_note09186a0080890613.shtml):

  • Configure the allowed VLAN list on the trunk port of the connected switch in order to restrict the number of VLANs that are passed to the client switch.
  • Enable pruning on the VTP server switch.
  • Use switches and/or images (EI) which support a greater number of VLANs.

Reference:

Cisco Understanding VLAN Trunk Protocol

Cisco Configuring VLAN Trunk Protocol

Cisco Vlan/VTP troubleshooting TechNotes


發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *