S3600系列交换机STP功能的配置.doc
文本预览下载声明
S3600系列交换机STP功能的配置
一? ?? ?组网需求:1. 所有设备运行STP(Spanning Tree Protocol)生成树协议;2. 以SwitchB为根网桥,阻断网络中的环路,并能达到链路冗余备份的效果;二? ?? ?组网图:三? ?? ?配置步骤:通过改变交换机或者端口的STP优先级,从而达到手工指定网络中的根网桥,以及端口的STP角色,完成阻断环路及链路的冗余备份。SwitchA配置:1??全局使能STP功能[SwitchA]stp enable2??将接PC机的端口stp功能关闭,或者配置为边缘端口,并使能BPDU保护功能[SwitchA-Ethernet 0/4]stp disable[SwitchA-Ethernet 0/4]stp edged-port enable[SwitchA]stp bpdu-protectionSwitchB配置:1??全局使能STP功能[SwitchB]stp enable2??将SwtichB配置为树根(两种方法:将SwitchB的Bridge优先级设置为0,或者直接将SwitchB指定为树根,两种方法一个效果)[SwitchB]stp priotity 0[SwitchB]stp root primary3??在各个指定端口上启动根保护功能(在此例中,SwtichB的所有端口都是指定端口)[SwitchB]interface Ethernet 0/1[SwitchB-Ethernet 0/1]stp root-protection[SwitchB-Ethernet 0/1]interface Ethernet 0/2[SwitchB-Ethernet 0/2]stp root-protection[SwitchB-Ethernet 0/2]interface Ethernet 0/3[SwitchB-Ethernet 0/3]stp root-protection[SwitchB-Ethernet 0/3]interface Ethernet 0/4[SwitchB-Ethernet 0/4]stp root-protection[SwitchB-Ethernet 0/4]interface GigabitEthernet 1/1[SwitchB-GigabitEthernet 1/1]stp root-protectionSwitchC配置:1??全局使能STP功能[SwitchC]stp enable2??将SwtichC配置为备份树根(两种方法:将Switc-C的Bridge优先级设置为4096,或者直接将SwitchC指定为备份树根,两种方法一个效果)[SwitchC]stp priotity 4096[SwitchC]stp root secondarySwitchD配置:1??全局使能STP功能[SwitchD]stp enable2??将接PC机的端口stp功能关闭,或者配置为边缘端口,并使能BPDU保护功能[SwitchD-Ethernet 0/4]stp disable[SwitchD-Ethernet 0/4]stp edged-port enable[SwitchD]stp bpdu-protectionSwitchE配置:1??全局使能STP功能[SwitchE]stp enable2??将接PC机的端口stp功能关闭,或者配置为边缘端口,并使能BPDU保护功能[SwitchE-Ethernet 0/4]stp disable[SwitchE-Ethernet 0/4]stp edged-port enable[SwitchE]stp bpdu-protectionSwitchF配置:1??全局使能STP功能[SwitchF]stp enable2??将接PC机的端口stp功能关闭,或者配置为边缘端口,并使能BPDU保护功能[SwitchF-Ethernet 0/4]stp disable[SwitchF-Ethernet 0/4]stp edged-port enable[SwitchF]stp bpdu-protection四? ?? ?配置关键点:1. 配置了”bpdu-protection”以后,如果某个边缘端口收到BPDU报文,则该边缘端口将会被关闭,必须由手工进行恢复;2. 当端口上配置了”stp root-protection”以后,该端口的角色只能是指定端口,且一旦该端口上收到了优先级高的配置消息,则该端口的状态将被配置为侦听状态,不再转发报文,当在足够长的时间内没有收到更优的配置消息时,端口会恢
显示全部