单区域多生成树一个案例
交换机组网MSTP配置需要达到的效果
1
、根选举是否正常
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge
:0.000f-e218-d10c
Bridge Times
:Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC
:0.000f-e218-d10c / 0
CIST RegRoot/IRPC
:0.000f-e218-d10c / 0
CIST RootPortId
:0.0
BPDU-Protection
:disabled
TC-Protection
:enabled / Threshold=6
Bridge Config
Digest Snooping
:disabled
CIST Root Type
:PRIMARY root
TC or TCN received :89170
Time since last TC :0 days 0h:57m:19s
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge
:4096.000f-e218-cf81
Bridge Times
:Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC
:0.000f-e218-d10c / 180
CIST RegRoot/IRPC
:4096.000f-e218-cf81 / 0
CIST RootPortId
:128.97
BPDU-Protection
:disabled
TC-Protection
:enabled / Threshold=6
Bridge Config
Digest Snooping
:disabled
CIST Root Type
:SECONDARY root
TC or TCN received :151059
Time since last TC :0 days 0h:12m:21s
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge
:32768.781d-ba80-2e68
Bridge Times
:Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC
:32768.781d-ba80-2e68 / 0
CIST RegRoot/IRPC
:32768.781d-ba80-2e68 / 0
CIST RootPortId
:0.0
BPDU-Protection
:disabled
TC or TCN received :0
TC count per hello :0
STP Converge Mode
:Normal
Time since last TC :3 days 23h:45m:19s
发现问题了,这里的
3352
优先级别是默认的
32768
,但是计算的结果是自己为根。
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge
:32768.781d-ba80-2e7f
Bridge Times
:Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC
:0 .000f-e218-d10c / 200179
CIST RegRoot/IRPC
:32768.781d-ba80-2e7f / 0
CIST RootPortId
:128.48
BPDU-Protection
:disabled
TC or TCN received :115
TC count per hello :0
STP Converge Mode
:Normal
Time since last TC :0 days 0h:42m:30s
2
、
MSTP
区域配置是否正常
都是默认配置,单个交换机独立为一个区域。
Oper configuration
Format selector :0
Region name :000fe218d10c
Revision level :0
Instance Vlans Mapped
0 1 to 899, 905 to 909, 911 to 918, 920 to 924, 926 to 936, 938 to
939, 951 to 954, 957 to 4094
1 900 to 904, 910, 919, 925, 937, 940 to 946, 948 to 949, 955 to
956
2 947, 950
Oper configuration
Format selector :0
Region name :000fe218cf81
Revision level :0
Instance Vlans Mapped
0 1 to 899, 905 to 909, 911 to 918, 920 to 924, 926 to 939, 951 to
954, 957 to 4094
1 900 to 904, 910, 919, 925, 940 to 946, 948 to 949, 955 to 956
2 947, 950
Oper configuration
Format selector :0
Region name :781dba802e68
Revision level :0
Instance Vlans Mapped
0 1 to 949, 951 to 4094
2 950
Oper configuration
Format selector :0
Region name :781dba802e7f
Revision level :0
Instance Vlans Mapped
0 1 to 949, 951 to 4094
2 950
3
、
MSTP
端口角色和转发状态是否正常
MSTID
Port Role STP State Protection
0 Ethernet2/0/1 DESI FORWARDING NONE
0 Ethernet2/0/26 DESI FORWARDING NONE
1 Ethernet2/0/1 DESI FORWARDING NONE
1 Ethernet2/0/26 DESI FORWARDING NONE
2 Ethernet2/0/1 DESI FORWARDING NONE
2 Ethernet2/0/26 DESI FORWARDING NONE
MSTID
Port Role STP State Protection
0 Ethernet2/0/1 ROOT FORWARDING NONE
0 Ethernet2/0/26 DESI FORWARDING NONE
1 Ethernet2/0/1 MAST FORWARDING NONE
1 Ethernet2/0/26 DESI FORWARDING NONE
2 Ethernet2/0/1 MAST FORWARDING NONE
2 Ethernet2/0/26 DESI FORWARDING NONE
MSTID Port
Role STP State Protection
0 Ethernet0/0/47 DESI FORWARDING NONE
0 Ethernet0/0/48 DESI FORWARDING NONE
2 Ethernet0/0/47 DESI FORWARDING NONE
2 Ethernet0/0/48 DESI FORWARDING NONE
3352
-
1
认为自己为根,所有端口均为指定端口,是不正常的。
MSTID Port
Role STP State Protection
0 Ethernet0/0/47 DESI DISCARDING NONE
0 Ethernet0/0/48 ROOT FORWARDING NONE
2 Ethernet0/0/47 DESI DISCARDING NONE
2 Ethernet0/0/48 MAST FORWARDING NONE
4
、处理方法:
搜集信息,报给华为
800
,厂家解决。
5
、发现的问题:
MSTP
的区域配置都是默认的配置(交换机主控板
MAC
地址),这样每个交换机都是独自一个区域,导致
MSTP
的多个
MSTI
实例的运算是无意义的(因为
MSTI
只在区域内运算),整个交换区域的
MSTP
树实质已经变成了
CST
公共生成树,区域内的生成树
IST
只有这台交换机自身,整个交换组网
CIST
实际已经变成了区域之间的
CST
域(
instance 0
)加上设备本身,导致新配置的
instance
实质还是和默认的
instance 0
一起
STP
运算,无法独立控制。
MSTP
概念图解
6
、整改方法
网络不是很复杂的情况下,需要对区域内的
VLAN
做独立调整,就需要预先划定
MSTP
区域,并保证区域配置
4
要素(
dis stp reg
输出)的一致性。这样才能实现区域内不同的
MSTI
的不同选路控制。
[QQT10F-S3352-1]dis stp br
MSTID Port Role STP State Protection
0 Ethernet0/0/47 ROOT FORWARDING NONE
0 Ethernet0/0/48 ALTE DISCARDING NONE
2 Ethernet0/0/47 ROOT FORWARDING NONE
2 Ethernet0/0/48 ALTE DISCARDING NONE
修改上行链路
instance 2
的
STP cost
值,让实例
2
的
VLAN
走另外一边的交换机。
[QQT10F-S3352-1]dis stp br
MSTID Port Role STP State Protection
0 Ethernet0/0/47 ROOT FORWARDING NONE
0 Ethernet0/0/48 ALTE DISCARDING NONE
2 Ethernet0/0/47 ALTE DISCARDING NONE
2 Ethernet0/0/48 ROOT FORWARDING NONE