25
155B
Enabling LDP on an interface
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
If the interface is bound to a VPN
instance, you must enable LDP
for the VPN instance by using
the
vpn-instance
command in
LDP view.
3.
Enable IPv4 LDP on the
interface.
mpls ldp enable
By default, IPv4 LDP is disabled
on an interface.
4.
Enable IPv6 LDP on the
interface.
mpls ldp ipv6 enable
By default, IPv6 LDP is disabled
on an interface.
34B
Configuring Hello parameters
Perform this task to set the following hello timers:
•
Link Hello hold time and Link Hello interval.
If an interface is enabled with both IPv4 LDP and IPv6 LDP, the parameters configured on the
interface can be used for both IPv4 and IPv6 Link Hello messages.
•
Targeted Hello hold time and Targeted Hello interval for a peer.
338B
Setting Link Hello timers
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter the view of the
interface where you want to
establish an LDP session.
interface interface-type
interface-number
N/A
3.
Set the Link Hello hold time.
mpls ldp timer
hello-hold
timeout
By default, the Link Hello hold
time is 15 seconds.
4.
Set the Link Hello interval.
mpls ldp timer
hello-interval
interval
By default, the Link Hello interval
is 5 seconds.
339B
Setting Targeted Hello timers for an LDP peer
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 the Targeted Hellos
received from the peer.
targeted-peer
{
ipv4-address
|
ipv6-address
}
By default, the device does not
send Targeted Hellos to any
peers, or respond to Targeted
Hellos received from any peers.
4.
Set the Targeted Hello hold
time.
mpls ldp timer
hello-hold
timeout
By default, the Targeted Hello
hold time is 45 seconds.
5.
Set the Target Hello interval.
mpls ldp timer
hello-interval
interval
By default, the Targeted Hello
interval is 15 seconds.