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)