- 论坛徽章:
- 0
|
![]()
任务:在Catalyst2950交换机上配置VTP
完成标准
(1)按照拓扑要求连接交换机,在VTP服务器上配置VLAN,配置为VTP客户机的交换机能够学习到VLAN信息,不能添加,删除和修改VLAN.
(2)配置为透明模式的交换机可以自已添加,删除和修改VLAN,但是不学习VLAN信息.
配置如下:
switch>en
switch#conf term
switcha(config)#host switcha
switcha(config)#vtp domain ckh //创建VTP域名为CKH//
switcha(config)#vtp mode server //配置交换机的VTP模式为服务器//
switcha(config)#vtp password 123 //配置VTP口令//
switcha(config)#inter f0/23
switcha(config-if)#switchport mode trunk
//配置f0/23接口为trunk//
switcha#vlan data
switcha(vlan)#vlan 2
switcha(vlan)#vlan 3
switcha(config)#vtp pruning //配置VTP修剪//
switch>en
switch#conf term
switchb(config)#host switchb
switchb(config)#vtp domain ckh //创建VTP域名为CKH//
switchb(config)#vtp mode transparent //配置交换机的VTP模式为透明的//
switchb(config)#vtp password 123 //配置VTP口令//
switchb(config)#inter f0/23
switchb(config-if)#switchport mode trunk
//配置f0/23接口为trunk//
switchb(config)#inter f0/24
switchb(config-if)#switchport mode trunk
//配置f0/24接口为trunk//
switch>en
switch#conf term
switchc(config)#host switchc
switchc(config)#vtp domain ckh //创建VTP域名为CKH//
switchc(config)#vtp mode transparent //配置交换机的VTP模式为透明的//
switchc(config)#vtp password 123 //配置VTP口令//
switchc(config)#inter f0/24
switchc(config-if)#switchport mode trunk
//配置f0/24接口为trunk//
//show ip int bri 这条命令查看端口摘要信息//
//show vtp status 这条命令查看VTP的配置信息//
//show vlan brief 这条命令查看VLAN信息//
//在交换机上配置VTP口令,用于保证网络内交换机VLAN配置的安全性.同一VTP域内的交换机,口令配置要一致,否则客户机,透明模式将学习不到//
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/72558/showart_1351273.html |
|