mpls ldp vpn-instance

Function

The mpls ldp vpn-instance command enables LDP for a VPN instance and displays MPLS LDP view.

The undo mpls ldp vpn-instance command restores the default configuration.

By default, there is not a VPN instance is enabled with LDP globally.

Format

mpls ldp vpn-instance vpn-instance-name

undo mpls ldp vpn-instance vpn-instance-name

Parameters

Parameter Description Value
vpn-instance-name

Specifies the name of a VPN instance for which LDP is enabled globally.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

Globally enabling MPLS LDP is the basis of configuring LDP-related functions. On a network to be enabled with MPLS LDP, run the mpls ldp command to globally enable LDP for a VPN instance. After this command is run, the MPLS-LDP view is displayed. You can configure LDP function in that view.

Prerequisites

MPLS has been enabled globally using the mpls (system view) command.

Precautions

Running the undo mpls ldp command in the system view deletes all MPLS LDP configurations in the system and interface views.

Example

# Enable LDP for a VPN instance.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] route-distinguisher 20:2
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp vpn-instance vpn1
[*HUAWEI-mpls-ldp-vpn-instance-vpn1] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >