< Home

Configuring an Interface to Transit to the Error-Down State When the Number of Received Error Packets Exceeds the Threshold

Context

When an Ethernet interface receives excessive error packets, faults such as packet loss will occur. Because the interface is still in Up state, traffic is still transmitted on the interface even if a backup link is configured. To avoid impact on services, you can configure the interface to change to the Error-down state when it receives excessive error packets. When the number of received error packets on the interface exceeds the threshold, the system disables the interface and records the interface status as ERROR DOWN(error-statistics) state (indicating that the interface is Down because of excessive error packets). Services are then switched to the backup link immediately.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. (Optional) Run trap-threshold error-statistics threshold-value interval interval-value

    The alarm threshold of error packets and the alarm interval are configured.

    By default, the alarm threshold of error packets is 3 and the alarm interval is 10 seconds.

  4. Run error-statistics threshold-event trigger error-down

    The interface is configured to transit to the Error-down state when the number of received error packets exceeds the threshold.

    By default, an interface does not transit to the Error-down state when the number of received error packets exceeds the threshold.

  5. (Optional) Run error-down-threshold error-statistics threshold-value interval interval-value

    The threshold and the interval for error packets that transit to the Error-Down state are configured.

    By default, the threshold for error packets is 3 and the interval is 10 seconds.

Verifying 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 error-statistics 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.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >