mpls ldp remote-peer

Function

The mpls ldp remote-peer command creates a remote peer and displays the remote peer view.

The undo mpls ldp remote-peer command deletes a remote peer.

By default, no remote peer is created.

Format

mpls ldp remote-peer remote-peer-name

undo mpls ldp remote-peer remote-peer-name

Parameters

Parameter Description Value
remote-peer-name

Specifies the name of a remote peer.

The name is a string of 1 to 32 case-sensitive characters, spaces not supported. 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

A remote LDP session is applicable to the following scenarios:

  • Allocating inner labels on an L2VPN

    If a VLL or a VPLS network is established between two LSRs in LDP mode, an LDP session (a remote LDP session in most cases) must be set up between the two LSRs before they assign inner labels to each other.
  • LDP over TE

    If the core devices on an MPLS network support TE whereas edge devices use LDP, configure a remote LDP session between two edge LSRs. After LDP over TE is configured, the TE tunnel is regarded as a hop of the entire LDP LSP.

    A remote LDP can be established either between two indirectly connected LSRs or between two directly connected LSRs.

    A local LDP session and an LDP remote session can coexist. Two LSRs can establish a local LDP session and a remote LDP session simultaneously.

Prerequisites

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

Configuration Impact

After the mpls ldp remote-peer command is run, a remote peer is created and the view of the remote peer is displayed.

Follow-up Procedure

You can configure the IP address of the remote peer.

Precautions

When configuring a remote LDP peer, run the mpls ldp remote-peer command on the local LDP and remote LDP peer. When the undo mpls ldp remote-peer command is run to attempt to delete a nonexistent remote peer, a message indicating that the peer is not configured is displayed.

Example

# Create a remote peer.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp
[*HUAWEI-mpls-ldp] quit
[*HUAWEI] mpls ldp remote-peer BJI
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >