136
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the loop detection
interval.
loopback-detection
interval-time interval
The default setting is 30 seconds.
Displaying and maintaining loop detection
Execute
display
commands in any view.
Task Command
Display the loop detection configuration and status.
display loopback-detection
Loop detection configuration example
Network requirements
As shown in
, configure loop detection on Device A to meet the following requirements:
•
Device A generates a log as a notification.
•
Device A automatically shuts down the port on which a loop is detected.
Figure 48 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
HGE1/0/1
Device A
Device B
Device C
HGE1/0/2
H
G
E
1/
0/
2
H
G
E
1/
0/
1
H
G
E
1/0
/1
H
G
E
1/0
/2
VLAN 100