29
Step Command
Remarks
•
Enter LDP-VPN instance view:
a. mpls ldp
b. vpn-instance
vpn-instance-name
3.
Enable LDP to redistribute
BGP IPv4 unicast routes.
import bgp
[
as-number
]
By default, LDP does not
redistribute BGP IPv4 unicast
routes.
4.
Enable LDP to redistribute
BGP IPv6 unicast routes.
ipv6 import bgp
[
as-number
]
By default, LDP does not
redistribute BGP IPv6 unicast
routes.
39B
Configuring an LSP generation policy
LDP assigns labels to the routes that have been redistributed into LDP to generate LSPs. An LSP
generation policy specifies which redistributed routes can be used by LDP to generate LSPs to
control the number of LSPs, as follows:
•
Use all routes to establish LSPs.
•
Use the routes permitted by an IP prefix list to establish LSPs. For information about IP prefix
list configuration, see
Layer 3—IP Routing Configuration Guide
.
•
Use only IPv4 host routes with a 32-bit mask or IPv6 host routes with a 128-bit mask to
establish LSPs.
By default, LDP uses only IPv4 host routes with a 32-bit mask or IPv6 host routes with a 128-bit mask
to establish LSPs. The other two methods can result in more LSPs than the default policy. To change
the policy, make sure the system resources and bandwidth resources are sufficient.
To configure an LSP generation policy:
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.