分享到:
发表于 2016-05-12 16:05:17 楼主 | |
交换机以太网端口回环测试功能包括内部环回测试和外部环回测试: 内部环回测试:在交换机芯片端口自检进行测试,用以定位端口相关功能是否出现故障。 外部回环测试:以太网端口上接了一个自环头,从端口发出的报文通过自环头又回到了该端口, 开启内环监测命令: [h3c] interface ethernet1/0/1 [h3c-ethernet1/0/1] loopback internal
开启外环监测命令: [h3c] interface ethernet1/0/1 [h3c-ethernet1/0/1] loopback external
针对外部环路侦测并处理的配置: [h3c] loopback-detection enabal #全局开启交换机外部环测试,如果要单独开启某个端口,先进入该端口执行命令,端口列表在 enable前面加数字。 [h3c] loopback-detection interval-time 60 #设置环回监测时间 为 60 s,默认为30s
例子:端口1开启外部环监测,出现故障并自动关闭该端口 [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型: [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进行的环监测并处理 [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”提供。 |
|
楼主热贴
个性签名:无
|
针对ZOL星空(中国)您有任何使用问题和建议 您可以 联系星空(中国)管理员 、 查看帮助 或 给我提意见