H3C环路测试教程

发布时间:2016-11-21 00:00:00 编辑:嘉辉 手机版

  H3C的S9500系列高端交换机获得了107 项 Tolly 认证,是 Tolly Group 为一类交换机颁发认证最多的一次。下面YJBYS小编为大家整理了关于H3C环路测试教程,希望对你有所帮助。

  交换机以太网端口回环测试功能包括内部环回测试和外部环回测试:

  内部环回测试:在交换机芯片端口自检进行测试,用以定位端口相关功能是否出现故障。

  外部回环测试:以太网端口上接了一个自环头,从端口发出的报文通过自环头又回到了该端口,

  开启内环监测命令:

  sys

  [h3c] interface ethernet1/0/1

  [h3c-ethernet1/0/1] loopback internal

  开启外环监测命令:

  sys

  [h3c] interface ethernet1/0/1

  [h3c-ethernet1/0/1] loopback external

  针对外部环路侦测并处理的配置:

  sys

  [h3c] loopback-detection enabal #全局开启交换机外部环测试,如果要单独开启某个端口,先进入该端口执行命令,端口列表在 enable前面加数字。

  [h3c] loopback-detection interval-time 60 #设置环回监测时间 为 60 s,默认为30s

  例子:端口1开启外部环监测,出现故障并自动关闭该端口

  sys

  [h3c] loopback-detection enable

  [h3c] interface ethernet1/0/1

  [h3c-Ethernet1/0/1] loopback-detection enable

  [h3c-Ethernet1/0/1] loopback-detection interval-time 60

  [h3c-Ethernet1/0/1] loopback-detection shutdown enable

  以上端口是默认的access端口处理

  如果端口是trunk和hbrid型:

  sys

  [h3c] loopback-detection enable

  [h3c] interface ethernet1/0/1

  [h3c-Ethernet1/0/1] port link-type trunk

  [h3c-Ethernet1/0/1] loopback-detection enable

  [h3c-Ethernet1/0/1] loopback-detection control enable

  [h3c-Ethernet1/0/1] loopback-detection interval-time 60

  [h3c-Ethernet1/0/1] loopback-detection shutdown enable

  如果是需要开起端口所属vlan进行的环监测并处理

  sys

  [h3c] loopback-detection enable

  [h3c] interface ethernet1/0/1

  [h3c-Ethernet1/0/1] loopback-detection enable

  [h3c-Ethernet1/0/1] port link-type trunk

  [h3c-Ethernet1/0/1] loopback-detection per-vlan enable

  [h3c-Ethernet1/0/1] loopback-detection interval-time 60

  [h3c-Ethernet1/0/1] loopback-detection shutdown enable

本文已影响874
+1
0