计算机技术论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

  • 欢迎访问 计算机技术论坛-电脑迷与初学者的家园!由于论坛管理严格,新注册会员可能遇到各种问题,无法解决的请发邮件 admin@jsjbbs.cn
查看: 2962|回复: 1

交换机STP配置详细

[复制链接]
发表于 2009-4-7 18:37:42 | 显示全部楼层 |阅读模式



1、配置交换机所有链路成中继链路,配置Ether channel
步骤1:
Switch-2950# config terminal
Switch-2950(config)# interface f0/1
Switch-2950(config-if)# switchport mode trunk
Switch-2950(config-if)# end
步骤2:
Switch-2950# config terminal
Switch-2950(config)# interface f0/2
Switch-2950(config-if)# switchport mode trunk
Switch-2950(config-if)# end
步骤3:
Switch-2950# config terminal
Switch-2950(config)# interface f0/3
Switch-2950(config-if)# switchport mode trunk
Switch-2950(config-if)# end
步骤4:
Switch-2950# config terminal
Switch-2950(config)# interface f0/4
Switch-2950(config-if)# switchport mode trunk
Switch-2950(config-if)# end
配置中继链路-交换机B、C、D与A相同
Switch-2950# config terminal
Switch-2950(config)# int range f0/3 -4
Switch-2950(config)# shutdown
Switch-2950(config)# no channel-group 1
Switch-2950(config)# no int port-channel
Switch-2950(config)# int range f0/3 -4
Switch-2950(config)# no shut
Switch-2950(config)# channe group 1 mode on
Switch-2950(config)# end

2、配置交换机VTP管理模式,交换机A配置成Server,其余交换机配置成Client
配置交换机A的VTP模式为server
Switch-2950# config terminal
Switch-2950(config)# vtp mode server
Switch-2950(config)# end
配置交换机B、C、D的VTP模式为server
Switch-2950# config terminal
Switch-2950(config)# vtp mode client
Switch-2950(config)# end

3、在交换机A上配置VTP域名BENET,并配置VLAN10,20,30
配置交换机A的VTP域名为benet
步骤:
Switch-2950# config terminal
Switch-2950(config)# vtp domain benet
Switch-2950(config)# end
在交换机A上配置vlan10、vlan20、vlan30
步骤:
Switch-2950# vlan database
Switch-2950(vlan)# vlan10 name vlan10
Switch-2950(vlan)# vlan20 name vlan20
Switch-2950(vlan)# vlan30 name vlan30
Switch-2950(vlan)# end
4、配置交换机A为VLAN1的根网桥,交换机B为VLAN10根网桥,交换机C为VLAN20根网桥,交换机D为VLAN30根网桥
配置交换机A为vlan1的根网桥
步骤:
Switch-2950# config terminal
Switch-2950(config) spanning-tree vlan 1 root primary
Switch-2950(config) end
配置交换机B为vlan10的根网桥
步骤:
Switch-2950# config terminal
Switch-2950(config) spanning-tree vlan 10 root primary
Switch-2950(config) end
配置交换机C为vlan20的根网桥
步骤:
Switch-2950# config terminal
Switch-2950(config) spanning-tree vlan 20 root primary
Switch-2950(config) end
配置交换机D为vlan30的根网桥
步骤:
Switch-2950# config terminal
Switch-2950(config) spanning-tree vlan 30 root primary
Switch-2950(config) end

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2009-4-7 20:55:18 | 显示全部楼层
侠客,VTP的模式在默认的情况下都是server模式,可以不用配置,但是其他的那两个模式是必须要配的,还有
f0/3 - 4,这里少了个空格。呵呵,这上面的配置步骤好像我们北大青鸟的书上的哦!都这么久了你还记那么清,好崇拜啊!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

无图版|手机版|计算机技术论坛 JSJBBS.CN @ 2008-2024 ( 鲁ICP备17021708号 )

技术支持 : 北京康盛新创科技有限责任公司

快速回复 返回顶部 返回列表