R0106-HP MSR Router Series MPLS Configuration Guide(V7)

28
Ste
p
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. Enable LDP MD5
authentication.
md5-authentication peer-lsr-id { cipher |
plain } password
By default, LDP MD5
authentication is disabled.
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:
Ste
p
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. Enable LDP to redistribute BGP
IPv4 unicast routes.
import bgp
By default, LDP does not
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.