接口环路检测保护不生效
问题描述:
在1、2接口开启了环路保护,动作为shutdown ,通过查看接口,1、2都是up的,是模拟器bug吗
组网及组网描述:
你只开启了环路检测的动作
配置步骤
#在SW1开启全局视图的环路检测
system-view
System View: return to User View with Ctrl+Z.
[H3C]loopback-detection enable vlan all
#进入接口2下,开启端口视图的环路检测,只有在系统视图下和指定端口视图下均配置了loopback-detection enable命令后,才开启端口的环回监测功能。
[H3C]interface GigabitEthernet 1/0/2
[H3C-GigabitEthernet1/0/2]loopback-detection enable vlan all
#设置检测到环路的动作是shutdown
[H3C-GigabitEthernet1/0/2]loopback-detection action shutdown
[H3C-GigabitEthernet1/0/2]quit
#保存配置
[H3C]save force
暂无
[H3C]loopback-detection global enable vlan all //全局开启环路检测,并对所有的VLAN生效
[H3C]loopback-detection interval-time 250 //配置环路检测的时间间隔为250秒
[H3C]int gi 1/0/1
[H3C-GigabitEthernet1/0/1]loopback-detection enable vlan all //接口开启环路检测,并对所有的VLAN生效
[H3C-GigabitEthernet1/0/1]loopback-detection action shutdown //当检测到环路时,环路检测会将此端口关闭
查看环路检测的显示信息:
[H3C]dis loopback-detection
Loopback detection is enabled. //环路检测已开启
Loopback detection interval is 250 second(s). //环路检测的时间间隔为250秒
No loopback is detected. //目前没有检测到环路
建议:
1、环路检测对下行的二层接口开启。
2、另外当设备也开启了STP,尽量不要使用环路检测,可能会与STP不兼容,影响到STP的运行。
环路检测典型组网配置案例 - 知了社区 (h3c.com)
暂无
全局是否也开启了环路检测
11小时前回答暂无
你正在内容来源:知了社区,接口环路检测保护不生效