VTP域对VLAN的管理

1.拓扑图

 

第一步: 把交换机相连的端口设置为trunk模式

第二步:在switch0上配置管理IP  192.168.0.1  ,创建vtp域名, 创建VLAN10  VLAN20 ,观察switch1 switch2交换机学习VLAN的情况,学习域名的情况,自身默认的VTP工作模式

 第三步:定义switch1 的工作模式为transparent,switch2的工作模式为client;在switch0上创建VLAN30 VLAN40 ,在switch2、switch3上观察他们VLAN的更新情况,vtp的状态

Switch0中的配置代码

Switch(config)#int vlan 1
Switch(config-if)#ip add 192.168.0.1 255.255.255.0
Switch(config-if)#no shutdown 
Switch(config-if)#exit
Switch(config)#int f0/1
Switch(config-if)#switchport mode trunk
Switch(config)#vtp domain teach
Changing VTP domain name from NULL to teach
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#vlan 30
Switch(config-vlan)#exit
Switch(config)#vlan 40
Switch(config-vlan)#

Switch1中的配置代码

Switch(config)#int range f0/1-2
Switch(config-if-range)#switchport mode trunk
Switch(config-if)#no shutdown 
Switch(config-if)#exit
Switch#show vlan brief

 

Switch#show vtp status 

 

Switch(config)#vtp mode transparent

 Switch2中的配置代码

Switch(config)#int f0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.

 

Switch#show vtp status 

 

 

 

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值