当前位置:网站首页>[case sharing] basic function configuration of network loop detection
[case sharing] basic function configuration of network loop detection
2022-07-07 01:08:00 【Weisi xmws】
Configuration requirements
Three devices Device A、Device B and Device C Form a physical ring network .
By means of Device A Configure the loop detection function on , Enable the system to shut down automatically Device A The port on which the loop appears , And inform users to check the network by printing log information .
Networking diagram

chart 1-3 Network diagram of basic function configuration of loop detection
Configuration steps
(1) To configure Device A
# establish VLAN 100, And open the global VLAN Loop detection function in .
<DeviceA> system-view
[DeviceA] vlan 100
[DeviceA–vlan100] quit
[DeviceA] loopback-detection global enable vlan 100
# configure port GigabitEthernet1/0/1 and GigabitEthernet1/0/2 by Trunk type , And allow VLAN 100 adopt .
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan 100
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-type trunk
[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 100
[DeviceA-GigabitEthernet1/0/2] quit
# The processing mode of global configuration loop detection is Shutdown Pattern .
[DeviceA] loopback-detection global action shutdown
# The time interval for configuring loop detection is 35 second .
[DeviceA] loopback-detection interval-time 3
(2) To configure Device B
# establish VLAN 100.
<DeviceB> system-view
[DeviceB] vlan 100
[DeviceB–vlan100] quit
# configure port GigabitEthernet1/0/1 and GigabitEthernet1/0/2 by Trunk type , And allow VLAN 100 adopt .
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 100
[DeviceB-GigabitEthernet1/0/1] quit
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 100
[DeviceB-GigabitEthernet1/0/2] qui
(3) To configure Device C
# establish VLAN 100.
<DeviceC> system-view
[DeviceC] vlan 100
[DeviceC–vlan100] quit
# configure port GigabitEthernet1/0/1 and GigabitEthernet1/0/2 by Trunk type , And allow VLAN 100 adopt .
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] port link-type trunk
[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 100
[DeviceC-GigabitEthernet1/0/1] quit
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] port link-type trunk
[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan 100
[DeviceC-GigabitEthernet1/0/2] qui
Verify configuration
When configuration is complete , The system is within a loop detection interval Device A The port of GigabitEthernet1/0/1 and GigabitEthernet1/0/2 Loops have been detected on , So the two ports are automatically closed , And printed the following log information :
[DeviceA]
%Feb 24 15:04:29:663 2013 DeviceA LPDT/4/LPDT_LOOPED: Loopback exists on GigabitEthernet1/0/1.
%Feb 24 15:04:29:665 2013 DeviceA LPDT/4/LPDT_VLAN_LOOPED: Loopback exists on GigabitEthernet1/0/1 in VLAN 100.
%Feb 24 15:04:29:667 2013 DeviceA LPDT/4/LPDT_LOOPED: Loopback exists on GigabitEthernet1/0/2.
%Feb 24 15:04:29:669 2013 DeviceA LPDT/4/LPDT_VLAN_LOOPED: Loopback exists on GigabitEthernet1/0/2 in VLAN 100.
%Feb 24 15:04:44:240 2013 DeviceA LPDT/5/LPDT_RECOVERED: Loopback on GigabitEthernet1/0/1 in VLAN 100 recovered.
%Feb 24 15:04:44:243 2013 DeviceA LPDT/5/LPDT_RECOVERED: Loopback on GigabitEthernet1/0/1 recovered.
%Feb 24 15:04:44:245 2013 DeviceA LPDT/5/LPDT_RECOVERED: Loopback on GigabitEthernet1/0/2 in VLAN 100 recovered.
%Feb 24 15:04:44:248 2013 DeviceA LPDT/5/LPDT_RECOVERED: Loopback on GigabitEthernet1/0/2 recovered
Use display loopback-detection Commands can be viewed Device A Configuration and operation of upper loop detection :
# Show Device A Configuration and operation of upper loop detection .
[DeviceA] display loopback-detection
Loopback detection is enabled.
Loopback detection interval is 35 second(s).
No loopback is detected.
thus it can be seen ,Device A Is not shown on the port GigabitEthernet1/0/1 and GigabitEthernet1/0/2 Loop detected on , This is because the loop detection function operates in Shutdown In mode , port GigabitEthernet1/0/1 and GigabitEthernet1/0/2 After the loop appears on the, it has been automatically closed , Therefore, the loop on these two ports has been eliminated . here , Use display interface Command to view separately Device A On the port GigabitEthernet1/0/1 and GigabitEthernet1/0/2 Status information :
# Show Device A On the port GigabitEthernet1/0/1 Status information .
[DeviceA] display interface gigabitethernet 1/0/1
GigabitEthernet1/0/1 current state: DOWN (Loopback detection down)
...
# Show Device A On the port GigabitEthernet1/0/2 Status information .
[DeviceA] display interface gigabitethernet 1/0/2
GigabitEthernet1/0/2 current state: DOWN (Loopback detection down)
...
thus it can be seen , port GigabitEthernet1/0/1 and GigabitEthernet1/0/2 Have been automatically turned off by the loop detection module .
end
边栏推荐
- NEON优化:关于交叉存取与反向交叉存取
- [牛客] [NOIP2015]跳石头
- Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
- Deeply explore the compilation and pile insertion technology (IV. ASM exploration)
- 深入探索编译插桩技术(四、ASM 探秘)
- New feature of Oracle 19C: automatic DML redirection of ADG, enhanced read-write separation -- ADG_ REDIRECT_ DML
- 「笔记」折半搜索(Meet in the Middle)
- 力扣1037. 有效的回旋镖
- Niuke cold training camp 6B (Freund has no green name level)
- Periodic flash screen failure of Dell notebook
猜你喜欢

【JVM调优实战100例】05——方法区调优实战(下)

Provincial and urban level three coordinate boundary data CSV to JSON

界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?

【JVM调优实战100例】04——方法区调优实战(上)

筑梦数字时代,城链科技战略峰会西安站顺利落幕

Batch obtain the latitude coordinates of all administrative regions in China (to the county level)

Niuke cold training camp 6B (Freund has no green name level)

《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03

【批处理DOS-CMD命令-汇总和小结】-字符串搜索、查找、筛选命令(find、findstr),Find和findstr的区别和辨析

Telerik UI 2022 R2 SP1 Retail-Not Crack
随机推荐
NEON优化:性能优化经验总结
[C language] dynamic address book
Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
golang中的Mutex原理解析
C Primer Plus Chapter 14 (structure and other data forms)
Periodic flash screen failure of Dell notebook
golang中的atomic,以及CAS操作
NEON优化:性能优化常见问题QA
[batch dos-cmd command - summary and summary] - view or modify file attributes (attrib), view and modify file association types (Assoc, ftype)
【批处理DOS-CMD命令-汇总和小结】-查看或修改文件属性(ATTRIB),查看、修改文件关联类型(assoc、ftype)
Eventbus source code analysis
[hfctf2020]babyupload session parsing engine
Tensorflow GPU installation
Configuring the stub area of OSPF for Huawei devices
在jupyter中实现实时协同是一种什么体验
Windows installation mysql8 (5 minutes)
[force buckle]41 Missing first positive number
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
Segmenttree
「笔记」折半搜索(Meet in the Middle)