当前位置:网站首页>[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
边栏推荐
- Dell筆記本周期性閃屏故障
- Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
- Equals() and hashcode()
- Dynamic planning idea "from getting started to giving up"
- Meet the level 3 requirements of ISO 2.0 with the level B construction standard of computer room | hybrid cloud infrastructure
- Set (generic & list & Set & custom sort)
- Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
- 【JokerのZYNQ7020】AXI_ EMC。
- Interface (interface related meaning, different abstract classes, interface callback)
- 自旋与sleep的区别
猜你喜欢
第六篇,STM32脉冲宽度调制(PWM)编程
批量获取中国所有行政区域经边界纬度坐标(到县区级别)
Data type of pytorch tensor
Do you understand this patch of the interface control devaxpress WinForms skin editor?
Anfulai embedded weekly report no. 272: 2022.06.27--2022.07.03
Configuring OSPF basic functions for Huawei devices
力扣1037. 有效的回旋镖
Learn to use code to generate beautiful interface documents!!!
Deeply explore the compilation and pile insertion technology (IV. ASM exploration)
Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax
随机推荐
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
建立自己的网站(17)
深度学习框架TF安装
Informatics Orsay Ibn YBT 1172: find the factorial of n within 10000 | 1.6 14: find the factorial of n within 10000
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
省市区三级坐标边界数据csv转JSON
mysql: error while loading shared libraries: libtinfo. so. 5: cannot open shared object file: No such
Data type of pytorch tensor
.class文件的字节码结构
gnet: 一个轻量级且高性能的 Go 网络框架 使用笔记
ESP Arduino (IV) PWM waveform control output
线段树(SegmentTree)
Fastdfs data migration operation record
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
Niuke cold training camp 6B (Freund has no green name level)
通过串口实现printf函数,中断实现串口数据接收
ActiveReportsJS 3.1中文版|||ActiveReportsJS 3.1英文版
Telerik UI 2022 R2 SP1 Retail-Not Crack
深入探索编译插桩技术(四、ASM 探秘)