美文网首页
H3C防止回路的端口命令

H3C防止回路的端口命令

作者: 有事找叮当 | 来源:发表于2021-07-18 16:59 被阅读0次

    以下是环路检测的配置脚本,请参考:
    [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. //目前没有检测到环路
    测试成功,下面提供网络连接图和测试截图


    相关文章

      网友评论

          本文标题:H3C防止回路的端口命令

          本文链接:https://www.haomeiwen.com/subject/qdnopltx.html