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

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

锐捷交换机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 处理。例如我们将giO/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 表删除动作以及在那个实例里面发生变化。例如我们将一台pc 直连到开启了mstp 的设备gi0/24 端口,通过debug mstp topochange 打印了如下信息:1:14:58:56 S2924G: %7:mstp topo:GigabitEthernet 0/24 select role DesignatedPort in msti 0!

该端口被选为instance0 里面的DesignatedPort

1:14:58:56 S2924G: %7:mstp topo:ssp port state notify.set port GigabitEthernet 0/24 state 2,mstid 0 设置该端口在instance 0

里面的转发状态为2,也就是learning 状态

1:14:58:56 S2924G: %7:mstp topo:ssp port state notify.set port GigabitEthernet 0/24 state 2,mstid 1 在instance1 中的转发状态为learning 1:14:59:11 S2924G: %7:mstp

topo:port[GigabitEthernet 0/24] change state discarding to forwarding 该端口进入forwarding 状态1:14:59:11

S2924G: %7:mstp topo:ssp port state notify.set port GigabitEthernet 0/24 state 3,mstid 0 更新为转发状态, 3 表示的就是转发状态1:14:59:11 S2924G: %7:mstp

topo:port[GigabitEthernet 0/24] change state discarding to forwarding

1:14:59:11 S2924G: %7:mstp topo:ssp port state notify.set port

GigabitEthernet 0/24 state 3,mstid 1

1:14:59:12 S2924G: %7:2007-1-12 10:28:40 topochange:topology is changed

到这里界面才打印拓扑变化Mstp 有哪些常见故障

Mstp 是一个拓扑计算协议,因此mstp 的常见故障都集中在

拓扑相关的特性上。比如:

1.根桥的选择和实际的要求不一致(根桥、上游转发网桥

相关文档
最新文档