锐捷交换机STPMSTP常用调试方式

锐捷交换机STPMSTP常用调试方式

Mstp的常用调试命令及说明

RGNOS10.1的mstp提供了一些调试命令供故障跟踪、分析之用。

特权模式下输入如下命令 S2924G#debug mstp ?

all all-'debug all'/not all-only close 'debug all' event mstp event debug information init mstp init debug information portinfo mstp portinfo debug information protomigrat mstp protomigrat debug information receive mstp packet receive debug information roletran mstp roletran debug information rx mstp rx packet debug information statetran mstp statetran debug information topochange mstp topoly change debug information transmit mstp packet transmit debug information tx mstp tx packet debug information

其中rx、tx、event、totochange四个选项可以供一线及测试人员使用,其它几个选项由于涉及到内部实现问题,暂不建议外部使用。下面对上述四个调试选项进行解释。

rx:

mstp的收包调试信息。利用该选项,可以跟踪当前设备的mstp是否可以收到bpdu报文、收到什么样的bpdu报文以及在那个端口上收报bpdu报文。例如

1:14:36:39 S2924G: %7:mstp rx:port[GigabitEthernet 0/16] rcvd MSTP bpdu?收到bpdu

1:14:36:39 S2924G: %7:mstp rx:port[GigabitEthernet 0/16] rcvd valid bpdu?该bpdu是可用的

上述调试信息表示当前设备在gi0/16收到了一个可用的bpdu报文,在网络稳定的情况下,该信息应该是每隔一个hello时间打印一次 tx:

mstp的收包调试信息。利用该选项,可以跟踪当前设备的mstp是否有向外发送bpdu报文以及往那些端口发送。 例如

1:14:41:11 S2924G: %7:mstp tx:tx MSTP BPDU at port GigabitEthernet 0/24

上述调试信息表示当前设备在向gi0/24发送了一个bpdu报文。在网络稳定的情况下,该信息应该是每隔一个hello时间打印一次 event:

mstp的事件调试信息。Mstp关心的一些系统事件包括:

端口的up/down、vlan的创建删除、ap的创建删除、端口的层次属性变化(包括端口在switchpor和routedport间的切换,端口在switchport和1q tunnel port间的切换)。利用该选项,可以跟踪系统的事件变换是否有被mstp处理。例如我们将gi0/16口的网线拔掉,通过debug mstp event,我们可以看到如下信息:

1:14:42:43 S2924G: %7:mstp event:linknotify port[GigabitEthernet 0/16],event = 0,link = 0 上述信息表明:

gi0/16的端口link状态发生变化(event=0表示端口link状态发生变化;event=8表示端口的trunk属性发生变化,比如由switchport变成1q tunnel;event=9表示端口在switchport和no switchport之间变化),状态变为down(link=0表示端口down;link=1表示up);

该信息通常用于跟踪端口up/down以及配置路由口时,mstp是否执行了正确的处理。 topochange:

mstp的拓扑变换调试信息。利用该调试命令,可以跟踪当前设备的mstp发生了什么样的拓扑变换。可跟踪的拓扑变化包括:端口的角色变化、端口的转发状态变化、端口的mac表删除动作以及在那个实例里面发生变化。例如我们将

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4