R0106-HP MSR Router Series MPLS Command Reference(V7)
54
Default
LDP only uses redistributed host routes with a 32-bit mask to generate LSPs.
Views
LDP view, LDP-VPN instance view
Predefined user roles
network-admin
Parameters
all: Enables LDP to use all redistributed routes to generate LSPs.
prefix-list prefix-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters.
LDP uses only the redistributed routes permitted by the IP prefix list to generate LSPs.
Usage guidelines
The default LSP generation policy depends on the label distribution control mode.
• In Ordered mode, LDP can only use the Loopback interface address routes with a 32-bit mask and
the routes with a 32-bit mask that match the FECs of label mappings received from downstream LSRs
to generate LSPs.
• In Independent mode, LDP can use all routes with a 32-bit mask to generate LSPs.
LDP assigns labels to the routes that have been redistributed into LDP to generate LSPs. After you
configure an LSP generation policy, LDP uses all redistributed routes or those permitted by the IP prefix list
to generate LSPs, regardless of the label distribution control mode.
HP recommends using the default LSP generation policy.
Examples
# Configure an LSP generation policy that enables LDP to use only redistributed routes 10.10.1.0/24 and
10.20.1.0/24 to establish LSPs for the public network.
<Sysname> system-view
[Sysname] ip prefix-list egress-fec-list index 1 permit 10.10.1.0 24
[Sysname] ip prefix-list egress-fec-list index 2 permit 10.20.1.0 24
[Sysname] mpls ldp
[Sysname-ldp] lsp-trigger prefix-list egress-fec-list
Related commands
• import bgp
• ip prefix-list (Layer 3—IP Services Command Reference)
lsr-id
Use lsr-id to configure an LDP LSR ID.
Use undo lsr-id to delete the configured LDP LSR ID.
Syntax
lsr-id lsr-id
undo lsr-id










