H3C防止回路的端口命令

核心提示以下是环路检测的配置脚本,请参考: [H3C]loopback-detection global enable vlan all //全局开启环路检测,并对所有的VLAN生效 [H3C]loopback-detection in

以下是环路检测的配置脚本,请参考:

[H3C]loopback-detection global enable vlan all //全局开启环路检测,并对所有的VLAN生效

[H3C]loopback-detection interval-time 5

//配置环路检测的时间间隔为5秒

[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]loopback-detection enable #全局开启环路检测

[H3C]loopback-detection interval-time 5 #环路检测时间为5s

[H3C-GigabitEthernet1/0/1]loopback-detection enable #启用端口环路检测

[H3C-GigabitEthernet1/0/1]loopback-detection shutdown enable #发现环路关闭端口

查看环路检测的显示信息:

[H3C]dis loopback-detection

Loopback detection is enabled. //环路检测已开启

Loopback detection interval is 250 second(s). //环路检测的时间间隔为250秒

No loopback is detected. //目前没有检测到环路

测试成功,下面提供网络连接图和测试截图

 
友情链接
鄂ICP备19019357号-22