14.2-步骤1:二层STP、Eth-Trunk配置
网络拓扑和配置要求见 14.1-500人规模园区网设计
1.提升核心交换机的桥优先级,使其成为根桥
核心SW1:
<Huawei>sys
[Huawei]un in en
[Huawei]sysn HX_SW1
[HX_SW1]stp root primary
2.配置接入交换机的非上联接口为边缘端口
接入SW2:
<Huawei>sys
[Huawei]un in en
[Huawei]sysn JR_SW2
[JR_SW2]port-g g e0/0/1 e0/0/2
[JR_SW2-port-group]stp edged-port enable
接入SW3:
<Huawei>sys
[Huawei]un in en
[Huawei]sysn JR_SW3
[JR_SW3]port-g g e0/0/1 e0/0/2
[JR_SW3-Ethernet0/0/2]stp edged-port enable
同样的配置接入交换机SW4 、SW5
3.配置链路聚合
核心SW1:
[HX_SW1]int Eth-Trunk 1
[HX_SW1-Eth-Trunk1]trunkport g0/0/1
[HX_SW1-Eth-Trunk1]trunkport g0/0/2
[HX_SW1-Eth-Trunk1]qu
[HX_SW1]int Eth-Trunk 2
[HX_SW1-Eth-Trunk2]trunkport g0/0/3
[HX_SW1-Eth-Trunk2]trunkport g0/0/4
[HX_SW1-Eth-Trunk2]qu
[HX_SW1]int Eth-Trunk 3
[HX_SW1-Eth-Trunk3]trunkport g0/0/6
[HX_SW1-Eth-Trunk3]trunkport g0/0/7
[HX_SW1-Eth-Trunk3]qu
[HX_SW1]int Eth-Trunk 4
[HX_SW1-Eth-Trunk4]trunkport GigabitEthernet 0/0/8 to 0/0/9
接入SW2:
[JR_SW2]int Eth-Trunk 1
[JR_SW2-Eth-Trunk1]trunkport g0/0/1
[JR_SW2-Eth-Trunk1]trunkport g0/0/2
同样的配置SW3、SW4、SW5
4.配置聚合链路的STP cost值为固定值,防止端口闪断STP反复收敛
核心SW1:
查看Eth-Trunk 1 默认cost值
HX_SW1]dis stp int Eth-Trunk 1
修改cost值为固定值10000
[HX_SW1]int Eth-Trunk 1
[HX_SW1-Eth-Trunk1]stp cost 10000
[HX_SW1-Eth-Trunk1]qu
[HX_SW1]int Eth-Trunk 2
[HX_SW1-Eth-Trunk2]stp cost 10000
[HX_SW1-Eth-Trunk2]qu
[HX_SW1]int Eth-Trunk 3
[HX_SW1-Eth-Trunk3]stp cost 10000
[HX_SW1-Eth-Trunk3]qu
[HX_SW1]int Eth-Trunk 4
[HX_SW1-Eth-Trunk4]stp cost 10000
[HX_SW1-Eth-Trunk4]
接入SW2:
[JR_SW2]int Eth-Trunk 1
[JR_SW2-Eth-Trunk1]stp cost 10000
同样的配置SW3、SW4、SW5的聚合链路的cost值为固定值10000
发表评论