H3C交换机:loopback-detection环路检测

H3C交换机:loopback-detection环路检测
loopback-detection global enable vlan 1 to 4094
loopback-detection global action shutdown


# 全局配置环路检测的处理模式为Shutdown 模式。
[DeviceA] loopback-detection global action shutdown
# 配置环路检测的时间间隔为35 秒。
[DeviceA] loopback-detection interval-time 35

验证配置
当配置完成后,系统在一个环路检测时间间隔内在 Device A 的端口 GigabitEthernet1/0/1 和
GigabitEthernet1/0/2 上都检测到了环路,于是将这两个端口自动关闭,并打印了如下日志信息:
<DeviceA> %Aug 26 19:17:29:760 2021 DeviceA IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet1/0/2 changed to up.
%Aug 26 19:17:29:760 2021 DeviceA IFNET/5/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet1/0/2 changed to up.
%Aug 26 19:17:30:356 2021 DeviceA IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet1/0/1 changed to up.
%Aug 26 19:17:30:356 2021 DeviceA IFNET/5/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet1/0/1 changed to up.
%Aug 26 19:17:33:985 2021 DeviceA LPDT/4/LPDT_LOOPED: -MDC=1; A loop was detected on GigabitEthernet1/0/1.
%Aug 26 19:17:34:005 2021 DeviceA IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet1/0/1 changed to down.
%Aug 26 19:17:34:006 2021 DeviceA IFNET/5/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet1/0/1 changed to down.
%Aug 26 19:17:34:018 2021 DeviceA LPDT/4/LPDT_VLAN_LOOPED: -MDC=1; A loop was detected on GigabitEthernet1/0/1 in VLAN 100.
%Aug 26 19:17:34:019 2021 DeviceA LPDT/4/LPDT_LOOPED: -MDC=1; A loop was detected on GigabitEthernet1/0/2.
%Aug 26 19:17:34:040 2021 DeviceA IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet1/0/2 changed to down.
%Aug 26 19:17:34:041 2021 DeviceA IFNET/5/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet1/0/2 changed to down.
%Aug 26 19:17:34:055 2021 DeviceA LPDT/4/LPDT_VLAN_LOOPED: -MDC=1; A loop was detected on GigabitEthernet1/0/2 in VLAN 100.
%Aug 26 19:17:34:055 2021 DeviceA LPDT/5/LPDT_VLAN_RECOVERED: -MDC=1; A loop was removed on GigabitEthernet1/0/1 in VLAN 100.
%Aug 26 19:17:34:055 2021 DeviceA LPDT/5/LPDT_RECOVERED: -MDC=1; All loops were removed on GigabitEthernet1/0/1.
%Aug 26 19:17:34:056 2021 DeviceA LPDT/5/LPDT_VLAN_RECOVERED: -MDC=1; A loop was removed on GigabitEthernet1/0/2 in VLAN 100.
%Aug 26 19:17:34:056 2021 DeviceA LPDT/5/LPDT_RECOVERED: -MDC=1; All loops were removed on GigabitEthernet1/0/2.
使用display loopback-detection 命令可以查看Device A 上环路检测的配置和运行情况:


# 显示Device A 上环路检测的配置和运行情况。
<DeviceA> display loopback-detection
Loop detection is enabled.
Global loop detection interval is 35 second(s).
Loop is detected on following interfaces:
  Interface                         Action mode     VLANs/VSI
  GigabitEthernet1/0/1              Shutdown        100
  GigabitEthernet1/0/2              Shutdown        100


用 display interface 命令分别查看 Device  A 上端口 GigabitEthernet1/0/1 和
GigabitEthernet1/0/2 的状态信息:
<DeviceA> display interface gigabitEthernet 1/0/1
GigabitEthernet1/0/1
Current state: DOWN (Loopback detection down)
<DeviceA>display interface gigabitEthernet 1/0/2
GigabitEthernet1/0/2
Current state: DOWN (Loopback detection down)
由此可见,端口GigabitEthernet1/0/1 和GigabitEthernet1/0/2 均已被环路检测模块自动关闭。



H3C S5130-52S-EI
#版本:7.1.045, Release 3116
 loopback-detection global enable vlan 1 to 4094
 loopback-detection global action shutdown
#




STP生成树(列表、list、全)STPlist、环路排查、环路list、loopbacklist
http://www.zh-cjh.com/wenzhangguilei/1485.html
文章归类、所有文章列表、LISTLIST
http://www.zh-cjh.com/wangzhangonggao/2195.html



1、本站资源长期持续更新。
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。

转载请保留出处:  www.zh-cjh.com珠海陈坚浩博客 » H3C交换机:loopback-detection环路检测

作者: cjh


手机扫一扫,手机上查看此文章:

一切源于价值!

其他 模板文件不存在: ./template/plugins/comment/pc/index.htm

未雨绸缪、居安思危!

数据安全、有备无患!

注意操作、数据无价!

一切源于价值!