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