< Home

error-down auto-recovery

Function

The error-down auto-recovery command enables an interface in Error-Down state to go Up and sets the auto recovery delay.

The undo error-down auto-recovery command disables an interface in Error-Down state from going Up automatically.

By default, an interface in Error-Down state is not enabled to go Up.

An interface enters the Error-Down state after being shut down due to an error. Currently, errors include the auto-defend protection, threshold crossing event, remote failure event, MAC address flapping, link flapping, low optical power, error packets exceeding the alarm threshold, and BPDU protection.

Format

error-down auto-recovery cause { as-not-ready | auto-defend | bpdu-protection | efm-remote-failure | efm-threshold-event | error-statistics | runts-error-statistics | link-flap | mac-address-flapping | port-security | transceiver-power-low | storm-control | data-integrity-error } interval interval-value

undo error-down auto-recovery cause { auto-defend | bpdu-protection | efm-remote-failure | efm-threshold-event | error-statistics | runts-error-statistics | link-flap | mac-address-flapping | port-security | transceiver-power-low | storm-control | data-integrity-error }

Parameters

Parameter

Description

Value

cause

Indicates the cause for an interface in Error-Down state.

-

as-not-ready

Indicates that the AS where the interface resides is not in service.

-

auto-defend

Indicates that the auto-defend function is enabled.

-

bpdu-protection

Indicates that STP BPDU protection is enabled.

-

efm-remote-failure

Indicates that an EFM remote failure event occurs.

-

efm-threshold-event

Indicates that a threshold crossing event occurs.

-

error-statistics

Indicates that the number of error packets exceeds the alarm threshold.

-

runts-error-statistics

Indicates that the number of received Runts error packets reaches the alarm threshold.

NOTE:

Only interfaces on the S5720-EI, S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S can be in this Error-Down state.

-

link-flap

Indicates that link flapping occurs.

-

storm-control

Indicates that storm control is enabled.

-

port-security

Indicates that the number of learned secure MAC addresses exceeds the upper limit or static MAC address flapping is detected.

-

mac-address-flapping

Indicates that MAC address flapping occurs.

-

transceiver-power-low

Indicates that the optical power is too low.

-

data-integrity-error

Indicates that the chip memory identifier has a data integrity error.

NOTE:

Only the S6720-HI, S5732-H, S6730-H, S6730S-H, S6730-S, and S6730S-S support this parameter.

-

interval interval-value

Specifies the auto recovery delay.

The value is an integer that ranges from 30 to 86400, in seconds.
  • A smaller value indicates a higher frequency at which an interface alternates between Up and Down states.
  • A larger value indicates longer traffic interruption.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An interface enters the Error-Down state in the following scenarios.

Cause for an Interface in Error-Down State

Scenario

Remarks

as-not-ready

When the device negotiates to the AS mode, its port status becomes Down and then becomes Up after services in the service profiles have been delivered.

-

auto-defend

After the auto-defend action command is used to configure actions against attack sources, the interface that receives attack packets is shut down to prevent the device from attacks.

-

bpdu-protection

On an STP-enabled network where BPDU protection is configured on an edge port, if malicious attackers send bogus BPDUs to attack the switching device, the switching device sets the edge port to Down immediately after the edge port receives BPDUs. As a result, all services on the edge port are interrupted.

For details, see stp bpdu-protection.

efm-remote-failure

The efm trigger error-down command associates an error event with an interface. When EFM detects critical-event, dying-gasp, link-fault, or timeout faults, the protocol status of the interface becomes Down and all services on the interface are interrupted.

-

efm-threshold-event

When link monitoring is configured for an interface on a link, the link is considered unavailable, if the number of errored frames, errored codes, or errored frame seconds detected by the interface reaches or exceeds the threshold within a period. You can associate an EFM crossing event with an interface. Then the system sets the administrative status of the interface to Down. In this manner, all services on the interface are interrupted.

-

error-statistics

When an Ethernet interface configured with a backup link receives error packets, faults such as packet loss occur. To ensure nonstop service transmission, when the number of received error packets reaches the alarm threshold, the interface is shut down and services are switched to the backup link.

For details, see trap-threshold error-statistics and error-statistics threshold-event trigger error-down.

runts-error-statistics

An interface receives Runts error packets if the optical fiber, network cable, or optical module is removed and reinstalled, the shutdown or undo shutdown command is executed, or Runts packets are forwarded on the network. To avoid worse impact on the device or services, the device counts the number of Runts error packets received by an interface within one minute, and shuts down the interface if the number reaches the alarm threshold 5.

-

link-flap

Network cable faults or active/standby switchovers may cause an interface to alternate between Up and Down. You can configure link flapping protection. When the device receives an interface Up/Down message, it checks the interface flapping count and link flapping detection interval. If the interface flapping count reaches the limit within the specified period, the device shuts down interface.

For details, see port link-flap protection enable.

storm-control

After the storm control action is configured as error-down on an interface, the interface is shut down when the average rate of receiving broadcast, multicast, and unknown unicast packets is larger than the specified limit within the interval for detecting storms.

For details, see storm-control action.

port-security

After port security is enabled on an interface, MAC addresses learned by the interface change to secure dynamic MAC addresses. If the port-security protect-action command sets the security protection action to shutdown, the interface is shut down when the number of learned MAC addresses on the interface exceeds the upper limit or static MAC address flapping is detected.

For details, see port-security protect-action and port-security enable.

mac-address-flapping

If the user network where the device is deployed does not support loop prevention protocols, configure a loop prevention action for the device to perform when the device detects MAC address flapping. The device shuts down an interface when detecting MAC address flapping on the interface.

For details, see mac-address flapping detection and mac-address flapping action.

transceiver-power-low

When the optical power of an Ethernet optical interface configured with a backup link is reduced, faults such as packet loss occur. When the optical power is lower than the lower alarm threshold, the interface is triggered to be in Error-Down state and services are switched immediately.

For details, see transceiver power low trigger error-down.

data-integrity-error

After the switch runs for a long time, the chip memory identifier has a data integrity error.

-

By default, an interface can only be resumed by a network administrator after being shut down. To configure the interface to restore to the Up state automatically, run the error-down auto-recovery command to set an auto recovery delay. After the delay, the interface goes Up automatically.

The restored interface is shut down again if the interface receives BPDUs again or the link is considered unavailable in a specified time.

Precautions

The error-down auto-recovery command is invalid for the interface that has been in Error-Down state. It takes effect for only the interface that enters the Error-Down state after the error-down auto-recovery command is executed.

BPDU protection has been enabled using the stp bpdu-protection command in the system view.

A threshold crossing event has been associated with an interface using the efm threshold-event trigger error-down command in the interface view.

An error event has been associated with an interface using the efm trigger error-down command in the interface view.

Example

# Set the delay for an interface changes from Down to Up to 50s after the edge port is enabled with BPDU protection on an STP-enabled network.

<HUAWEI> system-view
[HUAWEI] error-down auto-recovery cause bpdu-protection interval 50

# Set the auto recovery delay to 50s after an EFM threshold crossing event is associated with an interface.

<HUAWEI> system-view
[HUAWEI] error-down auto-recovery cause efm-threshold-event interval 50

# Set the auto recovery delay to 50s after an EFM remote failure event is associated with an interface.

<HUAWEI> system-view
[HUAWEI] error-down auto-recovery cause efm-remote-failure interval 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >