31
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter LDP view or enter
LDP-VPN instance
view.
•
Enter LDP view:
mpls ldp
•
Enter LDP-VPN instance view:
a. mpls ldp
b. vpn-instance
vpn-instance-name
N/A
3.
Configure an IPv4 LSP
generation policy.
lsp-trigger
{
all
|
prefix-list
prefix-list-name
}
By default, LDP uses only the
redistributed IPv4 routes with a
32-bit mask to establish LSPs.
4.
Configure an IPv6 LSP
generation policy.
ipv6 lsp-trigger
{
all
|
prefix-list
prefix-list-name
}
By default, LDP uses only the
redistributed IPv6 routes with a
128-bit mask to establish LSPs.
Configuring the LDP label distribution control
mode
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter LDP view or enter
LDP-VPN instance
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.
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
, LSR A advertises label mappings for FECs permitted by IP prefix list B to LSR
B. It advertises label mappings for FECs permitted by IP prefix list C to LSR C.