Step
1.
Enter system view.
2.
Set the loop detection
interval.
Displaying and maintaining loop detection
Execute display commands in any view.
Task
Display the loop detection configuration and status.
Loop detection configuration example
Network requirements
As shown in
•
Device A generates a log as a notification.
•
Device A automatically shuts down the port on which a loop is detected.
Figure 44 Network diagram
Configuration procedure
1.
Configure Device A:
# Create VLAN 100, and globally enable loop detection for the VLAN.
<DeviceA> system-view
[DeviceA] vlan 100
[DeviceA-vlan100] quit
[DeviceA] loopback-detection global enable vlan 100
Figure
44, configure loop detection on Device A to meet the following requirements:
Device A
GE1/0/1
Device B
VLAN 100
Command
system-view
loopback-detection
interval-time interval
Command
display loopback-detection
GE1/0/2
Device C
122
Remarks
N/A
The default setting is 30 seconds.