Step
1.
Enter system view.
2.
Enter LDP view or enter
LDP-VPN instance view.
3.
Enable
authentication.
Configuring LDP to redistribute BGP IPv4 unicast
routes
After LDP is enabled on a device, LDP can redistribute routes on the device, assign labels to the routes,
and establish LSPs.
By default, LDP automatically redistributes IGP routes and BGP routes that have been redistributed into
IGP. LDP cannot redistribute BGP routes if no IGP is configured or the BGP routes are not redistributed into
the IGP.
For example, on a carrier's carrier network where IGP is not configured between a PE of a Level 1 carrier
and a CE of a Level 2 carrier, LDP cannot redistribute BGP routes to assign labels to them. For this network
to operate correctly, you can enable LDP to redistribute BGP IPv4 unicast routes on the PE and the CE. The
configuration enables LDP to assign labels to the BGP routes to establish LSPs. For more information
about carrier's carrier, see "Configuring MPLS L3VPN".
To configure LDP to redistribute BGP IPv4 unicast routes:
Step
1.
Enter system view.
2.
Enter LDP view or enter LDP-VPN
instance view.
3.
Enable LDP to redistribute BGP
IPv4 unicast routes.
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.
•
Command
system-view
•
Enter LDP view:
mpls ldp
•
Enter LDP-VPN instance view:
a.
b.
LDP
MD5
md5-authentication peer-lsr-id { cipher |
plain } password
Command
system-view
•
Enter LDP view:
mpls ldp
•
Enter LDP-VPN instance view:
a.
b.
import bgp
mpls ldp
vpn-instance vpn-instance-name
mpls ldp
vpn-instance vpn-instance-name
28
Remarks
N/A
N/A
By default, LDP MD5
authentication is disabled.
Remarks
N/A
N/A
By default, LDP does not
redistribute BGP IPv4
unicast routes.