26
35B
Configuring LDP session parameters
This task configures the following LDP session parameters:
•
Keepalive hold time and Keepalive interval.
•
LDP transport address—IP address for establishing TCP connections.
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:
•
The configured LDP transport address must be the IP address of an up interface on the device.
Otherwise, no LDP session can be established.
•
Make sure the LDP transport addresses of the local and peer LSRs can reach each other.
Otherwise, no TCP connection can be established.
340B
Configuring LDP sessions parameters for 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.
Set the Keepalive hold time.
mpls ldp timer
keepalive-hold
timeout
By default, the Keepalive hold
time is 45 seconds.
4.
Set the Keepalive interval.
mpls ldp timer
keepalive-interval interval
By default, the Keepalive interval
is 15 seconds.
5.
Configure the LDP transport
address.
•
IPv4 LDP:
mpls ldp
transport-address
{
ipv4-address
|
interface
}
•
IPv6 LDP:
mpls ldp
transport-address
ipv6-address
By default:
•
The LDP IPv4 transport
address is the local LSR ID 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
IPv4 transport address is the
primary IP address of the
interface.
•
No LDP IPv6 transport
address is configured.
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.
341B
Configuring LDP IPv4 sessions parameters for 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 IPv4 LDP peer and
enter LDP peer view. The
targeted-peer
ipv4-address
By default, the device does not