Configuring LDP session parameters

This task configures the following LDP session parameters:

LDP uses Basic Discovery and Extended Discovery mechanisms to discovery LDP peers and establish LDP sessions with them.

When you configure LDP session parameters, follow these guidelines:

Configuring LDP sessions parameters for Basic Discovery mechanism

To configure parameters for LDP sessions to be established using Basic Discovery mechanism:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Configure the Keepalive hold time.

mpls ldp timer keepalive-hold timeout

By default, the Keepalive hold time is 45 seconds.

4. Configure the Keepalive interval.

mpls ldp timer keepalive-interval interval

By default, the Keepalive interval is 15 seconds.

5. Configure the LDP transport address.

mpls ldp transport-address { ip-address | interface }

By default, the LDP transport address is the LSR ID of the local device if the interface where you want to establish an LDP session belongs to the public network. If the interface belongs to a VPN, the LDP transport address is the primary IP address of the interface.

If the interface where you want to establish an LDP session is bound to a VPN instance, the interface with the IP address specified with this command must be bound to the same VPN instance.

Configuring LDP sessions parameters for Extended Discovery mechanism

To configure parameters for LDP sessions to be established using Extended Discovery mechanism:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter LDP view.

mpls ldp

N/A

3. Specify an LDP peer and enter LDP peer view. The device will send unsolicited Targeted Hellos to the peer and can respond to Targeted Hellos sent from the targeted peer.

targeted-peer peer-lsr-id

By default, the device does not send Targeted Hellos to or receive Targeted Hellos from any peer.

4. Configure the Keepalive hold time.

mpls ldp timer keepalive-hold timeout

By default, the Keepalive hold time is 45 seconds.

5. Configure the Keepalive interval.

mpls ldp timer keepalive-interval interval

By default, the Keepalive interval is 15 seconds.

6. Configure the LDP transport address.

mpls ldp transport-address ip-address

By default, the LDP transport address is the LSR ID of the local device.