No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Interface Management

S1720, S2700, S5700, and S6720 V200R010C00

This document describes the principles and configurations of interfaces and provides configuration examples.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Link Flapping Protection

Configuring Link Flapping Protection


Link flapping occurs when the physical status of an interface frequently alternates between Up and Down due to network flapping or network cable faults. Link flapping causes frequent network topology changes and affects user communication. For example, two links work in primary/backup mode. If the interface of the primary link experiences frequent Up/Down transitions, flows are switched between the primary and backup links. Frequent service switchovers increase load of the device and may result in service data loss.

Link flapping protection can solve the problem. You can configure this function to disable an interface that frequently alternates between Up and Down. When the interface is Down, the network topology will not change frequently. In the preceding example, you can configure link flapping protection on the interface of the primary link to prevent frequent topology changes. When the system detects frequent physical status changes on the interface of the primary link, the system directly disables the interface to trigger a primary/backup link switchover. The backup link then steadily transmits services. The link flapping protection function involves the following parameters:
  • Number of link flappings: One link flapping refers to one interface Up/Down transition.
  • Link flapping period: It is a period during which the system counts the number of link flappings.
If the number of link flappings on an interface reaches the threshold within a link flapping period, the system disables the interface and records its status as ERROR DOWN(link-flap), indicating that the interface is Down because of link flappings. By default, after link flapping protection is enabled, an interface goes Down if its status changes five times within 10 seconds.


  1. Run:


    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    port link-flap protection enable

    Link flapping protection is enabled on the interface.

    By default, link flapping protection is disabled on an interface.

  4. (Optional) Run:

    port link-flap interval interval-value

    The link flapping period is configured for the interface.

    By default, the link flapping period for an interface is 10 seconds.

  5. (Optional) Run:

    port link-flap threshold threshold-value

    The number of link flappings is configured for the interface.

    By default, the number of link flappings for an interface is 5.

Checking the Configuration

Run the display error-down recovery [ interface interface-type interface-number ] command in any view to check information about the interface in Error-down state.

Follow-up Procedure

An interface in Error-down state can be recovered using either of the following methods:
  • Manual recovery: If a few interfaces need to be recovered forcibly, run the shutdown and undo shutdown commands in the interface view. Alternatively, run the restart command in the interface view to restart the interfaces.
  • Automatic recovery: If a large number of interfaces need to be recovered, manual recovery is time consuming and some interfaces may be omitted. You can run the error-down auto-recovery cause link-flap interval interval-value command in the system view to enable automatic interface recovery and set the recovery delay time. An interface in Error-down state automatically recovers when the specified delay time expires.
Updated: 2019-12-28

Document ID: EDOC1000141936

Views: 50243

Downloads: 783

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next