专题六:交换机MSTP常见问题定位.pdf

上传人:苏美尔 文档编号:6072765 上传时间:2020-09-05 格式:PDF 页数:33 大小:976.84KB
返回 下载 相关 举报
专题六:交换机MSTP常见问题定位.pdf_第1页
第1页 / 共33页
专题六:交换机MSTP常见问题定位.pdf_第2页
第2页 / 共33页
专题六:交换机MSTP常见问题定位.pdf_第3页
第3页 / 共33页
专题六:交换机MSTP常见问题定位.pdf_第4页
第4页 / 共33页
专题六:交换机MSTP常见问题定位.pdf_第5页
第5页 / 共33页
点击查看更多>>
资源描述

《专题六:交换机MSTP常见问题定位.pdf》由会员分享,可在线阅读,更多相关《专题六:交换机MSTP常见问题定位.pdf(33页珍藏版)》请在三一文库上搜索。

1、 Security Level: HUAWEI TECHNOLOGIES CO., LTD. 交换机MSTP常见问题定位 目录目录 诊断工具 display工具 debug命令工具 log工具 端口无法快速收敛故障定位 端口discarding或自动shutdown故障定位 STP网络流量不稳定故障定位 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 3 命令命令 说明说明 display stp brief 查看实例、端口角色和状态、保护的简 要信息 display stp 查看生成树实例的状态信息和统计信息 display stp reg

2、ion-configuration 查看STP域配置信息 display stp history(诊断视图下) 查看STP计算历史记录 display stp tc-bpdu statistics 查看端口TC/TCN报文收发计数 display stp interface GigabitEthernet x/x/x 查看单个端口的stp信息 display命令工具 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 4 display stp brief display stp brief MSTID Port Role STP State P

3、rotection 0 GigabitEthernet1/0/0 ROOT FORWARDING NONE 0 GigabitEthernet1/0/6 ALTE DISCARDING NONE 0 GigabitEthernet6/0/0 DESI FORWARDING NONE 0 GigabitEthernet4/0/4 DESI FORWARDING NONE 角色 状态 display stp brief命令中关注端口的角色和对应的状态,通过这种简要信息可以快速的检查 网络中各个端口的stp情况,稳定情况下正常情况下角色状态对应关系如下表: 端口角色 端口状态 说明 DESI(指定口

4、) FORWARDING 指定交换机连接在网络中的端口 ROOT(根端口) FORWARDING 根端口对端的端口到达根桥开销最少 ALTE DISCARDING 提供到达根交换机可选择的端口 BACKUP DISCARDING 由指定口提供的到叶子节点路径的备份 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 5 display stp history Quidway-diagnosedisplay stp history - Stp Instance 0 history trace - GigabitEthernet4/0/4 Desi-

5、Root at 2010/04/27 15:34:01 UTC+08:00 0.0000-0123-0120 0 0.0000-0123-0120 0 0.0000-0123-0120 128.194 GigabitEthernet1/0/0 Root-Desi at 2010/04/27 15:34:01 UTC+08:00 4096.0000-0000-000e 0 4096.0000-0000-000e 0 4096.0000-0000-000e 128.0 角色 display stp history命令中记录了历史上端口角色发生的变化,通过这个可以看 出根桥以及根端口的变化,从而可以

6、确定网络中是否存在抢根的行为。 示例中根桥由0000-0000-000e变成0000-0123-0120,根端口由1/0/0变 为4/0/4 角色 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 6 display stp display stp -CIST Global InfoMode MSTP- CIST Bridge :32768.0000-0a88-15cb Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :0 .0000-0123-0120

7、/ 20000 CIST RegRoot/IRPC :32768.0000-0a88-15cb / 0 CIST RootPortId :128.195 BPDU-Protection :Disabled TC or TCN received :105 TC count per hello :0 STP Converge Mode :Normal Share region-configuration :Enabled Time since last TC :0 days 0h:14m:35s display stp 命令中可以看到当前的根桥,域根桥,收到TC报文的历史计数以及 最近一次收到TC

8、报文的时间。可以了解当前的stp基本情况和TC报文情况。 根桥 域根桥 历史上收到TC报文的个数 最近一次收到TC的时间 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 7 display stp tc-bpdu statistics Quidwaydisplay stp tc-bpdu statistics - STP TC/TCN information - MSTID Port TC(Send/Receive) TCN(Send/Receive) 0 GigabitEthernet1/0/0 4/24 0/0 0 GigabitEthe

9、rnet6/0/0 64/0 0/0 0 GigabitEthernet4/0/4 1/1 0/0 display stp tc-bpdu statistics命令可以查看设备上各个端口TC报文的收发情况, 在有TC攻击的时候可以通过多次查看这个命令,对比TC收发计数找TC的源头。 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 8 DEBUG命令工具 命令命令 说明说明 debugging stp interface GigabitEthernet x/x/x packet all 显示单个端口的stp收发报文情况 debugging st

10、p interface GigabitEthernet x/x/x event 显示单个端口stp的事件信息 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 9 debugging stp interface xx packet debugging stp interface GigabitEthernet 4/0/4 packet all Apr 27 2010 16:22:17.220.1 S9303_PSW_202 MSTP/7/PKT: Port241(GigabitEthernet4/0/4) Rcvd Packet(Length:

11、 102) ProtocolVersionID : 03 BPDUType : 02 Flags : 7c( DESIGNATED Learning Forwarding Agreement ) CIST Root Identifier : 0.0000-0a88-15cb CIST External Path Cost : 0 CIST Bridge Identifier : 0.0000-0a88-15cb CIST Port Identifier : 128.195 Message Age : 0 Max Age : 20 Hello Time : 2 Forward Delay : 1

12、5 Version 1 Length : 0 Version 3 Length : 64 CIST Regional Root Identifier : 0.0000-0a88-15cb CIST Internal Root Path Cost : 0 CIST Remaining Hops : 20. Apr 27 2010 16:22:17.220.2 S9303_PSW_202 MSTP/7/MSG: Instance : 0 表示对端设备,收到报文中该字段不同时需关注, 重点关注对端是否是透传BPDU报文。 收包 HUAWEI TECHNOLOGIES CO., LTD. Huawei

13、 Confidential 10 log 盒式产品由于mstp的日志信息级别比较低,而logbuffer中默认记录warning 以及以上级别(1,2,3),所以如果需要捕获stp相关信息,需要使用如下命令调 整mstp的日志级别: info-center source MSTP channel 3 trap level informational info-center source MSTP channel 4 log level informational 日志文件中可以看到对应的端口以及阻塞情况: Apr 27 2013 15:03:14 Quidway %01MSTP/6/SET_P

14、ORT_FORWARDING(l):In MSTP process 0 instance 1,MSTP set port GigabitEthernet4/0/8 state as forwarding. Apr 27 2013 15:09:03 Quidway %01MSTP/6/SET_PORT_DISCARDING(l):In MSTP process 0 instance 1, MSTP set port GigabitEthernet3/0/12 state as discarding. 日志文件中可以看到从哪个端口收到TC报文: Apr 27 2013 15:09:03 Quidw

15、ay %01MSTP/6/RECEIVE_MSTITC(l):MSTP received BPDU with TC, MSTP process 0 instance 0, port name is GigabitEthernet3/0/10. 目录目录 诊断工具 display工具 debug命令工具 log工具 端口无法快速收敛故障定位 定位思路 定位步骤 端口Discarding或自动shutdown故障定位 定位思路 定位步骤 STP网络流量不稳定故障定位 定位思路 定位步骤 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 12 端口无

16、法快速收敛故障定位端口无法快速收敛故障定位 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 13 故障描述: MSTP的网络拓扑中出现链路故障或链路故障恢复后,业务流量恢复需要超过30 秒。 端口无法快速收敛故障定位端口无法快速收敛故障定位 故障举例故障举例 B A PC B PC A 三层网络 二层网络 B A PC B PC A 三层网络 二层网络 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 14 多次查看的时候端口的stp状态变化由DISCARDING-LEARNING-FORWA

17、RDING,大概消耗30秒。 Quidwaydisplay stp brief MSTID Port Role STP State Protection 0 GigabitEthernet1/0/0 DESI FORWARDING NONE 0 GigabitEthernet1/0/2 DESI DISCARDING NONE 0 GigabitEthernet6/0/0 DESI DISCARDING NONE 0 GigabitEthernet4/0/4 ROOT FORWARDING NONE * * Quidway display stp brief MSTID Port Role S

18、TP State Protection 0 GigabitEthernet1/0/0 DESI FORWARDING NONE 0 GigabitEthernet1/0/2 DESI LEARNING NONE 0 GigabitEthernet6/0/0 DESI LEARNING NONE 0 GigabitEthernet4/0/4 ROOT FORWARDING NONE * * Quidway display stp brief MSTID Port Role STP State Protection 0 GigabitEthernet1/0/0 DESI FORWARDING NO

19、NE 0 GigabitEthernet1/0/2 DESI FORWARDING NONE 0 GigabitEthernet6/0/0 DESI FORWARDING NONE 0 GigabitEthernet4/0/4 ROOT FORWARDING NONE 步骤一步骤一 故障时查看各个端口的故障时查看各个端口的STP状态状态 使用display stp brief多次查看设备上各个端口的STP状态,确认对应 端口STP收敛情况。 端口无法快速收敛故障定位端口无法快速收敛故障定位 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 15

20、 S9303_PSW_202display stp interface GigabitEthernet 1/0/12 * Designated Bridge/Port :32768.0000-0123-0120 / 128.26 Port Edged :Config=default / Active=disabled /Active为为enabled表示边缘口生效表示边缘口生效,Disabled表表 示失效示失效 Point-to-point :Config=auto / Active=true Transit Limit :6 packets/s * 步骤二步骤二 查看对应的端口的查看对应的

21、端口的stp信息信息 使用display stp interface 端口号显示端口stp信息。 A 检查对端是否为终端或边缘端口失效;如果端口对端连接的是终 端或不支持STP的设备或者3层端口,在端口上执行命令stp edge-port enable 开启边缘端口属性或配置stp disable去使能STP。 端口无法快速收敛故障定位端口无法快速收敛故障定位 B检查设备、端口的STP工作模式;如果设备工作在STP模式,可通过命 令stp mode mstp调整为MSTP模式。如果设备工作在MSTP模式,但端口协 商为STP模式,则需要在对端设备检查工作模式。 S9303_PSW_202dis

22、play stp interface GigabitEthernet 1/0/12 -CIST Global InfoMode MSTP- * Transit Limit :6 packets/s Protection Type :None Port STP Mode :MSTP /此处显示有此处显示有STP,RSTP,MSTP 3种情况种情况 Port Protocol Type :Config=auto / Active=dot1s HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 16 S9303_PSW_202display stp i

23、nterface GigabitEthernet 1/0/12 -CIST Global InfoMode MSTP- CIST Bridge :32768.0000-0123-0120 * -Port26(GigabitEthernet1/0/12)FORWARDING- Port Protocol :Enabled Port Role :Designated Port Port Priority :128 Port Cost(Dot1T ) :Config=auto / Active=20000 Designated Bridge/Port :32768.0000-0123-0120 /

24、128.26 Port Edged :Config=default / Active=enabled Point-to-point :Config=auto / Active=true Transit Limit :6 packets/s Protection Type :None Port STP Mode :MSTP Port Protocol Type :Config=auto / Active=dot1s BPDU Encapsulation :Config=stp / Active=stp * 步骤三步骤三 查看对应的端口的查看对应的端口的stp信息信息 C 检查端口是否为点对点链路

25、;Active=true表示为点对点链路,S系 列交换机默认stp point-to-point auto。RSTP和MSTP模式的快速协商机制只 能在点对点链路上。 端口无法快速收敛故障定位端口无法快速收敛故障定位 目录目录 诊断工具 display工具 debug命令工具 log工具 端口无法快速收敛故障定位 定位思路 定位步骤 端口Discarding或自动shutdown故障定位 定位思路 定位步骤 STP网络流量不稳定故障定位 定位思路 定位步骤 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 18 定位思路 HUAWEI TECH

26、NOLOGIES CO., LTD. Huawei Confidential 19 组网拓扑 故障描述:网络中并没有环路,S5700A连接S7700的端口阻塞。 端口端口Discarding或自动或自动shutdown故障定位故障定位 故障举例故障举例 Mstp Quidway A Quidway B HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 20 多次查看的时候端口角色为指定口(DESI)的stp状态一直都是DISCARDING。 S9306_203display stp brief MSTID Port Role STP State

27、 Protection 0 GigabitEthernet1/0/0 DESI FORWARDING NONE 0 GigabitEthernet1/0/2 DESI DISCARDING NONE 0 GigabitEthernet6/0/0 DESI DISCARDING NONE 0 GigabitEthernet4/0/4 ALTE DISCARDING NONE /角色是角色是ALTE(根备份口)阻塞是正常的不用关(根备份口)阻塞是正常的不用关 注注 0 GigabitEthernet1/0/6 ROOT FORWARDING NONE 步骤一步骤一 故障时查看各个端口的故障时查看各

28、个端口的STP状态状态 使用display stp brief多次查看设备上各个端口的STP状态,确认对应 端口STP收敛情况,当端口的角色是DESI同时STP状态一直都是 DISCARDING说明该端口不正常。 端口端口Discarding故障定位故障定位 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 21 Quidwaydisplay current-configuration interface GigabitEthernet 0/0/4 # interface GigabitEthernet0/0/4 /端口上没有端口上没有stp

29、root-protection或或stp loop- protection # Quidwaydisplay stp brief MSTID Port Role STP State Protection 0 GigabitEthernet0/0/4 DESI DISCARDING NONE /端口上保护方式是端口上保护方式是NONE,说明端口没有任何保护,说明端口没有任何保护 方式方式 步骤二步骤二 查看端口上配置查看端口上配置 A 如果端口没有配置根保护也没有配置环路保护,并开启调试开关获 取对端发送的STP报文信息,确认对端发送的STP优先级比本端低,检查对 端端口配置(对端是S37/57

30、需要端口配置bpdu enable) 。 端口端口Discarding故障定位故障定位 对比本设备上的根和对端的根的大小。 debugging stp interface GigabitEthernet 4/0/4 packet all Apr 27 2010 16:22:17.220.1 S9303_PSW_202 MSTP/7/PKT: Port241(GigabitEthernet4/0/4) Rcvd Packet(Length: 102) * CIST Root Identifier : 0.0000-0a88-15cb /先对比优先级,先对比优先级,0为最优,如果都是为最优,如果都

31、是0,再比较,再比较mac小的优先级高小的优先级高 * Quidwaydisplay stp -CIST Global InfoMode MSTP- CIST Bridge :32768.0000-0a88-15cb Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :0 .0000-0123-0120 / 20000 /对比中对比中mac0000-0123-0120比比0000-0a88-15cb小小 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 22

32、 Quidwaydisplay current-configuration interface GigabitEthernet 0/0/4 # interface GigabitEthernet0/0/4 stp root-protection # S5700display stp brief MSTID Port Role STP State Protection 0 GigabitEthernet0/0/4 DESI DISCARDING ROOT /端口角色是指定口(DESI),保护模式是根保护 debugging stp interface GigabitEthernet 4/0/4

33、packet all Apr 27 2010 16:22:17.220.1 S9303_PSW_202 MSTP/7/PKT: Port241(GigabitEthernet4/0/4) Rcvd Packet(Length: 102) ProtocolVersionID : 03 BPDUType : 02 Flags : 7c( DESIGNATED Learning Forwarding Agreement ) CIST Root Identifier : 0.0000-0a88-15cb CIST External Path Cost : 0 CIST Bridge Identifie

34、r : 0.0000-0a88-15cb 步骤二步骤二 查看端口上配置查看端口上配置 B 如果配置了根保护, Root保护功能用在根桥设备的所有端口上, 端口角色是指定口并且阻塞,说明对端发送过来的stp报文优先级比较高, 通过debugging stp interface interface-type interface-number all诊断命令 采集详细的交互报文,排查端口接收报文中的Root Identifier、Bridge Identifier字段的桥MAC对应的设备,修改优先级不能抢根。 端口端口Discarding故障定位故障定位 HUAWEI TECHNOLOGIES CO

35、., LTD. Huawei Confidential 23 Quidwaydisplay current-configuration interface GigabitEthernet 0/0/4 # interface GigabitEthernet0/0/4 stp loop-protection # Quidwaydisplay stp brief MSTID Port Role STP State Protection 0 GigabitEthernet0/0/4 DESI DISCARDING LOOP /端口角色是指定口(DESI),保护模式是环路保护 步骤二步骤二 查看端口上配

36、置查看端口上配置 C 如果配置了环路保护, 端口角色是指定口并且阻塞,说明对端没 有发stp报文过来,通过debugging stp interface interface-type interface- number all诊断命令采集详细的交互报文,没收到stp报文就需要向上排 查网络。 端口端口Discarding故障定位故障定位 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 24 Quidwaydisplay this # stp bpdu-protection stp enable # Quidway-GigabitEtherne

37、t1/0/4display this # interface GigabitEthernet1/0/4 shutdown /bpdu保护shutdown端口有命令行 stp edged-port enable # 步骤一步骤一 检查全局和端口下检查全局和端口下配置配置 故障时先确认全局视图下配置有stp bpdu-protection,对应端口上有 边缘端口配置stp edged-port enable ,此时端口上有shutdown命令。 端口自动端口自动shutdown故障定位故障定位 步骤二步骤二 查看对应时间点日志查看对应时间点日志 查看对应时间点的日志信息,找到bpdu保护激发的日志

38、信息可以确 认是bpdu保护shutdown端口。 MSTP/4/BPDU_PROTECTION:This edged-port port-name that enabled BPDU-Protection will be shutdown, because it received BPDU packet! HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 25 步骤三步骤三 检查对端情况检查对端情况 经过步骤一二确认是bpdu保护shutdown端口,需要检查对端设备配 置确认使能stp或者透传stp报文。确认对端会发stp报文后,需要把本端

39、 的边缘端口去使能然后再undo shutdown恢复链路。 端口自动端口自动shutdown故障定位故障定位 备注:如果设备上有端口经常的up down,那么这种情况和stp没有任何关系。stp只有在一种情况(全局视图 配置stp stp bpdu-protection ,同时端口下配置stp edged-port enable 后再收到stp报文会把端口shutdown)下才 会把端口shutdown,而且这种会在端口视图下有shutdown的配置,同时需要人工干预手动undo shutdown才能 恢复up。 目录目录 诊断工具 display工具 debug命令工具 log工具 端口无

40、法快速收敛故障定位 定位思路 定位步骤 端口Discarding或自动shutdown故障定位 定位思路 定位步骤 STP网络流量不稳定故障定位 定位思路 定位步骤 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 27 STP网络流量不稳定故障定位网络流量不稳定故障定位 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 28 组网拓扑 故障描述: STP网络中出现业务流量时断时续。 Mstp S5700A S7700 S5700B S5700C STP网络流量不稳定故障定位网络流量不稳定故障定

41、位 故障举例故障举例 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 29 display stp brief MSTID Port Role STP State Protection 0 GigabitEthernet4/0/10 DESI FORWARDING NONE 0 GigabitEthernet4/0/12 DESI FORWARDING NONE 0 GigabitEthernet4/0/40 DESI FORWARDING NONE 观察端口对应的STP State、Role是否有变化。 步骤一步骤一 检查端口的检查端口的S

42、TP状态,角色是否稳定状态,角色是否稳定 通过display stp interface查看端口的STP状态、角色是否稳定。 STP网络流量不稳定故障定位网络流量不稳定故障定位 HUAWEI TECHNOLOGIES CO., LTD. Huawei Confidential 30 S5700display stp -CIST Global InfoMode MSTP- CIST Bridge :32768.0000-0a88-15d5 Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 Active Times :Hello 2s Ma

43、xAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :32768.0000-0a88-15d5 / 0 CIST RegRoot/IRPC :32768.0000-0a88-15d5 / 0 CIST RootPortId :0.0 BPDU-Protection :Disabled TC or TCN received :0 /收到tc的个数 TC count per hello :0 STP Converge Mode :Normal Share region-configuration :Enabled Time since last TC :0 da

44、ys 1h:53m:53s /最近收到最近收到tc的时间的时间 S53EI_213display stp tc-bpdu statistics - STP TC/TCN information - MSTID Port TC(Send/Receive) TCN(Send/Receive) 0 GigabitEthernet0/0/4 1/0 0/0 /端口上收发tc的个数 查看交换机中日志文件中可以看到tc收到的端口 Apr 21 2012 08:44:11 S9303 %01MSTP/6/RECEIVE_MSTITC(l): MSTP received BPDU with TC, MSTP process 0 instance 0, port name is GigabitEthernet1/0/4. 步骤二步骤二 查看设备收发查看设备收发TC的情况的情况 通过命令行display stp观察最近收到TC的情况和故障时间是否一致。 历史的TC信息可以通过日志信息中对应时间点确认和故障时间点吻合程 度。 STP网络流量不稳定故障定位网络流量不稳定故障定位 HUA

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 科普知识


经营许可证编号:宁ICP备18001539号-1