mpls ldp (Interface view)

Function

The mpls ldp command enables LDP on an interface.

The undo mpls ldp command disables LDP on an interface.

By default, LDP is not enabled on an interface.

Format

mpls ldp

undo mpls ldp

Parameters

None

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, VLANIF interface view, XGE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

On a network where MPLS LDP services are deployed, after you enable MPLS LDP on a node, enable MPLS LDP on the interfaces of the node to perform other LDP configurations.

Prerequisites

MPLS LDP has been enabled on the node to which the interface belongs.

Configuration Impact

Running the undo mpls ldp command in the interface view causes the deletion of all MPLS LDP configurations on the interface.

Follow-up Procedure

You can perform other configurations of MPLS LDP.

Example

# Enable LDP on an interface.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp
[*HUAWEI-mpls-ldp] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] mpls
[*HUAWEI-GigabitEthernet0/1/0] mpls ldp
# Enable LDP on the GRE tunnel interface.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp
[*HUAWEI-mpls-ldp] quit
[*HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol gre
[*HUAWEI-Tunnel1] mpls
[*HUAWEI-Tunnel1] mpls ldp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >