< Home

dldp enable

Function

The dldp enable command enables DLDP.

The undo dldp enable command disables DLDP.

By default, DLDP is disabled globally and on each interface.

Format

dldp enable

undo dldp enable

Parameters

None

Views

System view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Sometimes unidirectional links occur on networks. On a unidirectional link, the local device can receive packets from the peer device at the link layer, but the peer device cannot receive packets from the local device. Unidirectional links result in problems such as loops on an STP topology.

DLDP is used to monitor the link status of optical fibers or copper twisted pairs. If a unidirectional link exists, DLDP automatically shuts down the interface or prompts users to manually shut down the interface to prevent network faults.

To enable DLDP, run the dldp enable command to globally enable DLDP and then run this command on the interface.

Prerequisites

DLDP takes effect only when the physical link is connected; therefore, securely connect optical fibers or copper twisted pairs before enabling DLDP.

Precautions

  • After you enable DLDP using the dldp enable command in the system view, run this command again on the interfaces to enable DLDP so that the interfaces can properly transmit and receive DLDP packets.

  • If DLDP is disabled in the system view, DLDP is disabled on all interfaces, and all the DLDP configurations are deleted, which cannot be restored.

Example

# Enable DLDP globally.

<HUAWEI> system-view
[HUAWEI] dldp enable

# Enable DLDP on interface GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] dldp enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >