Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface { ethernet | gigabitethernet } interface-number
The interface view is displayed.
Step 3 Run:
loop-detection recovery-time recovery-time
The recovery time of the blocked interface is set. The blocked interface is unblocked after the
recovery time.
By default, the recovery time of a blocked interface is 255 seconds.
NOTE
The recovery time of an interface must be longer than or equal to the loop detection interval on the interface.
----End
13.2.8 Checking the Configuration
Procedure
Step 1 Run the display loop-detection [ interface interface-type interface-number ] command to view
the configuration of the loop detection function.
----End
Example
Run the display loop-detection, and you can check whether loop detection is enabled. If loop
detection is enabled, the system displays the interval for detecting loops, ID of the VLAN where
loop detection is enabled, loops detected, and information about the ports that turn to the
Shutdown state because of the loops.
<Quidway> display loop-detection
Loop Detection is enable.
Detection interval time is 5 seconds.
Following vlans enable loop-detection:
vlan 17
Following ports are blocked for loop:
NULL
Following ports are shutdown for loop:
NULL
Following ports are nolearning for loop:
NULL
If you run the display loop-detection command on a single port, the following information is
displayed:
<Quidway> display loop-detection interface GigabitEthernet 1/0/0
The port is enable.
The port's status list:
Status WorkMode Recovery-time EnabledVLAN
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 13 Loop Detection Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
629