VTP的基本概念和實驗

VTP 的基本概念和實驗
小實驗:
 
實驗環境的建立步驟:
++++++++++++++++++++++++++++++++++++++++++++++++++
sw 0
++++++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in range f0/1 - 3
sw m t
end
vlan d
vtp domain gao
vtp password 123
vlan 10
vlan 20
vlan 30
+++++++++++++++++++++++++++++++++++++++++++++++++++
sw 1
+++++++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in f0/1
sw m t
end
vlan d
vtp domain gao
vtp password 123
vtp client (有的版本使用 vtp mode client
exit
en
conf t
in f0/15
sw a v 10
++++++++++++++++++++++++++++++++++++++++++++++++++++
sw 2
++++++++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in f0/2
sw m t
end
vlan d
vtp domain gao
vtp password 123
vtp client
exit
en
conf t
in f0/15
sw a v 10
+++++++++++++++++++++++++++++++++++++++++++++++++++++
sw 3
+++++++++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in f0/3
sw m t
end
vlan d
vtp domain gao
vtp password 123
vtp transparent
vlan 20
exit
en
conf t
in f0/15
sw a v 20
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
◆Vtp (vlan trunk protocol)實現單點訪問控制vlan信息的做用。惟cisco私有。
◆Vtp消息使用二層frame, 組播地址: 01-00-0c-cc-cc-cc。
◆Vtp 使用條件:交換機直連,同域,同密,擁有中繼端口(直連端口)
◆Vtp 模式:
Server: 在域中至少有一臺交換處於此模式。
Client
Transparent 此模式在 VTP 不一樣版本表現是不一樣的。
第二版本使用命令: vtp version 2 vtp v2-mode 啓用(只須要在 server 交換上打命令)。其與一版本最大的不一樣在於:支持令牌環交換;在轉發 vtp 消息時,不檢查版本號與域名。
Vtp 消息類型:
彙總通告:包含目前的 VTP 域名與配置修改編號。配置修改編號的範圍( 0~2^32 - 1 )。每 300 秒發送一次,當網絡拓撲發生變化時也會發送。
子集通告:包含 vlan 配置的詳細信息。
通告請求:發送條件 1. 交換機重起後 2 . VTP 域名變化後 3 . 交換機接受到修改配置編號比本身高的彙總通告。
◆    交換機修改配置編號重設爲 0 的方法:
1 . 更改交換機的域名 2. 將交換機的模式該爲透明模式後再該爲其餘的模式
vtp 修剪 在服務器上打 vtp pruning 可減小沒必要要的廣播。
Switch#SHOW  VTP  STATUS
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 64
Number of existing VLANs        : 5
VTP Operating Mode              : Server
VTP Domain Name                 :
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x7D 0x5A 0xA6 0x0E 0x9A 0x72 0xA0 0x3A
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)
相關文章
相關標籤/搜索