< Home

(Optional) Configuring an LDP Transport Address

Context

LDP sessions are established based on TCP connections. Before two LSRs establish an LDP session, they need to check the LDP transport address of each other, and then establish a TCP connection.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The view of the interface on which the LDP session is to be set up is displayed.

  3. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

  4. Run mpls ldp transport-address { interface-type interface-number | interface }

    An LDP transport address is specified.

    The default transport address for a node on a public network is the LSR ID of the node, and the default transport address for a node on a private network is the primary IP address of an interface on the node.

    If LDP sessions are to be established over multiple links connecting two LSRs, LDP-enabled interfaces on either LSR must use the default transport address or the same transport address. If multiple transport addresses are configured on an LSR, only one transport address can be used to establish only one LDP session.

    Changing an LDP transport address interrupts an LDP session. Exercise caution when running this command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >