< Home

dldp unidirectional-shutdown

Function

The dldp unidirectional-shutdown command sets the shutdown mode if DLDP detects a unidirectional link on an interface.

The undo dldp unidirectional-shutdown command restores the default shutdown mode if DLDP detects a unidirectional link on an interface.

By default, an interface is shut down automatically if DLDP detects a unidirectional link on the interface.

Format

dldp unidirectional-shutdown { auto | manual }

undo dldp unidirectional-shutdown [ auto | manual ]

Parameters

Parameter

Description

Value

auto

Specifies the automatic mode.

-

manual

Specifies the manual mode. When the traffic is heavy or CPU usage is high, the manual shutdown mode is recommended.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When DLDP detects a unidirectional link on an interface, run the dldp unidirectional-shutdown command to configure the shutdown mode for the interface. The following shutdown modes are available:

  • Manual mode: This mode can prevent DLDP from shutting down the port immediately when the network performance is poor. This leads to failure in packet forwarding. It is a compromise mode used to prevent interface shutdown due to incorrect judgment of the system. In this mode, DLDP detects unidirectional links, and the network administrator manually shuts down the interface. When the DLDP state machine detects a unidirectional link, the system sends trap messages to prompt the network administrator to shut down the interface. Then the DLDP state machine changes to the Disable state.

  • Automatic mode: It is the default mode. When a unidirectional link is detected, the DLDP state machine changes to the Disable state, records the trap messages, and sets the interface status to Blocking.

Prerequisites

DLDP has been enabled globally using the dldp enable command.

Precautions

When the traffic is heavy or CPU usage is high, the manual shutdown mode is recommended.

Example

# Configure DLDP to automatically shut down an interface when a unidirectional link is detected.

<HUAWEI> system-view
[HUAWEI] dldp enable
[HUAWEI] dldp unidirectional-shutdown auto
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >