panyifu
初级工程师
帖子
1317
精华
0
无忧币 14123
积分 3469
阅读权限 50
|
发表于:2007-11-7 13:13
标题:S3600系列交换机STP功能的配置
<上一帖 |
下一帖>
一 组网需求:
1. 所有设备运行STP(Spanning Tree Protocol)生成树协议;
2. 以SwitchB为根网桥,阻断网络中的环路,并能达到链路冗余备份的效果;
二 组网图:

三 配置步骤:
通过改变交换机或者端口的STP优先级,从而达到手工指定网络中的根网桥,以及端口的STP角色,完成阻断环路及链路的冗余备份。
SwitchA配置:
1 全局使能STP功能
[SwitchA]stp enable
2 将接PC机的端口stp功能关闭,或者配置为边缘端口,并使能BPDU保护功能
[SwitchA-Ethernet 0/4]stp disable
[SwitchA-Ethernet 0/4]stp edged-port enable
[SwitchA]stp bpdu-protection
SwitchB配置:
1 全局使能STP功能
[SwitchB]stp enable
2 将SwtichB配置为树根(两种方法:将SwitchB的Bridge优先级设置为0,或者直接将SwitchB指定为树根,两种方法一个效果)
[SwitchB]stp priotity 0
[SwitchB]stp root primary
3 在各个指定端口上启动根保护功能(在此例中,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-protection
SwitchC配置:
1 全局使能STP功能
[SwitchC]stp enable
2 将SwtichC配置为备份树根(两种方法:将Switc-C的Bridge优先级设置为4096,或者直接将SwitchC指定为备份树根,两种方法一个效果)
[SwitchC]stp priotity 4096
[SwitchC]stp root secondary
SwitchD配置:
1 全局使能STP功能
[SwitchD]stp enable
2 将接PC机的端口stp功能关闭,或者配置为边缘端口,并使能BPDU保护功能
[SwitchD-Ethernet 0/4]stp disable
[SwitchD-Ethernet 0/4]stp edged-port enable
[SwitchD]stp bpdu-protection
SwitchE配置:
1 全局使能STP功能
[SwitchE]stp enable
2 将接PC机的端口stp功能关闭,或者配置为边缘端口,并使能BPDU保护功能
[SwitchE-Ethernet 0/4]stp disable
[SwitchE-Ethernet 0/4]stp edged-port enable
[SwitchE]stp bpdu-protection
SwitchF配置:
1 全局使能STP功能
[SwitchF]stp enable
2 将接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”以后,该端口的角色只能是指定端口,且一旦该端口上收到了优先级高的配置消息,则该端口的状态将被配置为侦听状态,不再转发报文,当在足够长的时间内没有收到更优的配置消息时,端口会恢复原来的正常状态;
3. 此案例同时适用于H3C 3100-SI、5100、3500、3600、5600系列交换机。
|
 网络工程师到底该不该去考CCIE认证? |
|