登录

H3C-环路测试教程

qq_68463q831714 交换机论坛

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


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


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



开启内环监测命令: 


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  


本教程由“网域NETLAND”提供。


展开全文
打开APP,一键看同内容文章>

相关推荐

最新问答

查看更多问答
反馈