配置vtp服务器
一、进入全局模式
swith# configure terminal
二、将交换机配置为vtp服务器模式
switch(config)# vtp mode server
三、配置vtp管理域名
switch(config)# vtp aomain domain-name
四、设置vtp域密码,密码长度为8-64个字符
swith(config)#vtp password password
五、返回特权模式
swith(config)# end
六、查看并校验配置
swith#show vtp statue
七、保存配置
swith# copy running-config startup-running
配置vtp客户端
一、进入全局模式
swith# configure terminal
二、将交换机配置为vtp服务器模式
switch(config)# vtp mode client
三、配置vtp管理域名
switch(config)# vtp aomain domain-name
四、设置vtp域密码,密码长度为8-64个字符
swith(config)#vtp password password
五、返回特权模式
swith(config)# end
六、查看并校验配置
swith#show vtp statue
七、保存配置
swith# copy running-config startup-running
当口令和域名一致时,client端可以学习到server端的vlan,当然在VTP Server 端还可以有很多策略,这里只是说明最基本的应用。 VTP在多vlan情况下应用是很有意义的,在主交换机上设置好vlan以后,在下级 的交换机不用再设置vlan,可以将 VTP client的某些端口添加到VTP Server中设置 的vlan中去,加强了vlan的集中管理。 |
配置vtp透明模式
一、进入全局模式
switch# configure terminal
二、将交换机配置为vtp透明模式
switch(config)# vtp mode transparent
三、返回特权模式
swith(config)# end
四、查看并校验配置
swith#show vtp statue
五、保存配置
swith# copy running-config startup-running
启用vtp版本
一、进入全局模式
switch# configure terminal
二、在交换机上启用vtp版本 2
switch(config)# vtp version 2
三、返回特权模式
swith(config)# end
四、查看并校验配置
swith#show vtp statue
五、保存配置
swith# copy running-config startup-running
启用vtp修剪
一、进入全局模式
switch# configure terminal
二、在vtp管理域中启用修剪
switch(config)# vtp mode transparent
三、返回特权模式
swith(config)# end
四、查看并校验配置
swith#show vtp statue
五、保存配置
swith# copy running-config startup-running
将vtp客服端添加到vtp域
一、查看vtp版本号,并将其记录
switch# show vtp statue
二、进入全局模式
switch# configure terminal
三、修改域名
switch(config)#vtp domain domain-name
四、返回特权模式
swith(config)# end
五、校验配置版本号已经被重新设置0
switch#show vtp status
六、进入全局模式
switch# configure terminal
七、修改域名,恢复原来记录的域名
switch(config)#vtp domain domain-name
八、返回特权模式
swith(config)# end
九、保存配置
swith# copy running-config startup-running
转载于:https://blog.51cto.com/sdbaby/392663