VTP(VLAN Trunk Protocol)
1、vtp是vlan的进一步扩充。
2、vtp的作用:
是从一个控制点维护整个企业网络上的vlan 的add、del和重命名
3、vtp的具体优点:
(1)保持vlan的一致性
(2)提供从一个交换机在整个管理域中增加虚拟局域网的方法
4、在vtp协议中有两个重要的概念:
(1)vtp域
(2)vtp通告
在交换机之间用来传递vlan信息的数据报成为vtp通告
5、vtp运行模式
交换机默认运行的是服务器模式
(1)服务器模式(Server)
(2)客户机模式(Client)
(3)透明模式(Transparent)
6、vtp修剪
他是vtp的一个功能,他能减少中继端口上不必要的广播信息量
7、配置命令
一个拓扑图为例,进行配置
主要步骤:(1)设置trunk
在交换机A上
en
config t
inter  f0/1
switchport mode trunk
在交换机B上
en
config t
inter range f0/1 - 2
swithchport mode trunk
在交换机C上
en
config t
inter f0/1
switchport mode trunk
(2)vtp域
三个交换机上一致
en
conf t
vtp domain benet
(3)配置交换机的模式
在交换机A上配置服务器模式
en
conf t
vtp mode server
在交换机B和C上配置客户机模式(两者命令一样)
en
conf t
vtp mode client
为了实现安全性
(4)配置vtp口令
所有的交换机必须一致
en
conf t
vtp password 123
(5)设置vtp修剪
只在服务器上配置即可,在此只在A上配置
en
conf t
vtp pruning
(6)查看vtp配置信息
show vtp status
配置结束后,通过查看三个交换机有相同的vlan信息,说明试验成功
交换机A上
交换机B上
交换机C上