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, no interface is enabled with LDP.

Format

mpls ldp

undo mpls ldp

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network to be enabled with MPLS LDP, globally enable MPLS LDP and configure LDP functions. Before you establish an LDP session between a local interface and another node and configure LDP functions, enable MPLS LDP on the interface using the mpls ldp command.

MPLS LDP applies only to Ethernet interfaces, Ethernet subinterfaces, Eth-Trunk interfaces, Eth-Trunk subinterfaces, and VLANIF interfaces.

Prerequisites

MPLS LDP has been enabled globally using the mpls ldp command in the system view.

MPLS has been enabled on the interface using the mpls command in the interface view.

Precautions

NOTICE:
Running the undo mpls ldp command in the interface view deletes all MPLS LDP configurations on the interface.

Example

# Enable LDP on an interface.

<sysname> system-view
[sysname] mpls
[sysname-mpls] quit
[sysname] mpls ldp
[sysname-mpls-ldp] quit
[sysname] interface gigabitethernet 1/0/0
[sysname-GigabitEthernet1/0/0] mpls
[sysname-GigabitEthernet1/0/0] mpls ldp
Related Topics
mpls ldp (system view)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.