HP MSR2000/3000/4000 Router Series MPLS Command Reference

44
LDP uses the same LSR ID for all sessions in the same VPN instance. After you configure a new LSR ID for
a VPN instance, LDP does not use the new LSR ID unless you use the reset mpls ldp command to
reestablish all LDP sessions in the VPN instance.
For the public network, HP recommends using the default LDP LSR ID configured by the mpls lsr-id
command. If you want to configure an LDP LSR ID for the public network by using the lsr-id command,
specify the IP address of a local Loopback interface as the LDP LSR ID for high reliability.
Examples
# Configure the LDP LSR ID as 2.2.2.2 for the public network.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-ldp] lsr-id 2.2.2.2
Related commands
display mpls ldp parameter
mpls lsr-id
maxhops
Use maxhops to specify the maximum hop count for loop detection.
Use undo maxhops to restore the default.
Syntax
maxhops hop-number
undo maxhops
Default
The maximum hop count for loop detection is 32.
Views
LDP view, LDP-VPN instance view
Predefined user roles
network-admin
Parameters
hop-number: Specifies the maximum hop count for loop detection, in the range of 1 to 32.
Usage guidelines
LDP adds a hop count in a label request or label mapping message. The hop count increments by 1 on
each LSR. When the hop count reaches the maximum hop count configured by this command, LDP
considers that a loop occurs and terminates LSP establishment.
Set a proper maximum hop count according to the number of LSRs in your network. For example, set a
smaller maximum hop count in small networks to allow for fast loop detection; set a bigger maximum hop
count in large networks to make sure that LSPs can be successfully established.
Examples
# Set the maximum hop count to 25 for loop detection in the public network.
<Sysname> system-view
[Sysname] mpls ldp