第二章 STP协议

Switch(cofnig)#spanning-tree vlan 1 启用生成树
Switch(config)#spanning-tree vlan 2 root primary / secondary 配置交换机为根网桥、主要的/次要的
Switch(config)#spanning-tree vlan 2 priority  8192 修改交换机的优先级
Switch(config-if)#spanning-tree vlan 2 cost 100/19/4/2 修改端口路径成本
Switch(config-if)#spanning-tree vlan 2 port-priority 50 修改端口路径优先级(端口十进制取值0~255,默认值事128)
Switch(config)#spanning-tree uplinkfast 配置上行速链路
Switch(config)#interface range f0/1 - 20 (为除TRUNK链路外的接口配速端口)
Switch(config-if)#spanning-tree portfast 配置速端口
Switch#show spanning-tree 查看生成树信息 (在小凡模拟器上show spanning-tree br)
以太网通道配置
Switch(config)#interface range fasteternet 0/1 - 2   (为1、2端口配置以太网端口
Switch(config-if-range)#channel-group 1 mode on  (把绑在一起成为组1
Switch#show etherchannel 1 summary   查看以太网通道的配置是否正确

 

本文出自 “Steven Home” 博客,谢绝转载!

你可能感兴趣的:(职场,Cisco,休闲,stp协议)