端口配置
端口环回检测的配置主要包括以下内容。
1. 使能一个或者多个端口的环回检测功能
loop-detect interface [port-name] [enable | disable]
2. 配置端口进行环回检测的vlan
loop-detect interface [port-name] vlan [vlan-id][enable | disable]
3. 设置环回检测保护端口
loop-detect protect-interface [port-name] [enable | disable]
在交换机检测到端口环回后将根据此端口的protect 属性进行进一步的操作,如果端口的protect-interface 属性为enable,交换机告警提示检查到环回,但不对此端口做任何其他操作;如果端口的protect-interface 属性为disable,在检测到环回时将关闭此端口。在启动环回检测后,protect-interface属性缺省为disable。
4. 设置端口检测到环回端口被关闭后重新激活的时间
loop-detect reopen-time [interval]
5. 显示使能环回检测的端口
show loop-detect interface
6. 显示使能环回检测端口的详细信息
show loop-detect interface-detail [port-name]
7. 显示使能环回检测保护端口
show loop-detect protect-interface
8. 显示环回检测关闭端口重新激活时间
show loop-detect reopen-time