27
By default, LDP uses only host routes with a 32-bit mask to establish LSPs. The other two methods
can result in more LSPs than the default policy. To change the policy, be sure that the system
resources and bandwidth resources are sufficient.
To configure an LSP generation policy:
1. Enter system view.
system-view
N/A
2. Enter LDP view or enter
LDP-
view.
• Enter LDP view:
mpls ldp
• Enter LDP-VPN instance view:
a. mpls ldp
b. vpn-instance
vpn-instance-name
N/A
3.
generation policy.
lsp-trigger
{
all
|
prefix-list
prefix-list-name }
By default, LDP uses only host
routes with a 32-bit mask to
establish LSPs.
Configuring the LDP label distribution control
mode
1. Enter system view.
N/A
2. Enter LDP view or enter
LDP-
view.
• Enter LDP view:
mpls ldp
• Enter LDP-VPN instance view:
a. mpls ldp
b. vpn-instance
vpn-instance-name
N/A
3.
Configure the label
distribution control
mode.
label-distribution
{
independent
|
ordered
}
By default, the Ordered label
distribution mode is used.
To apply the new setting to LDP
sessions established before the
command is configured, you
must reset the LDP sessions.
Configuring a label advertisement policy
A label advertisement policy uses IP prefix lists to control the FEC-label mappings advertised to
peers.
As shown in Figure 15, LSR A advertises label mappings for FECs permitted by IP prefix list B to LSR
B and advertises label mappings for FECs permitted by IP prefix list C to LSR C.