Configuring LDP to redistribute BGP unicast routes

By default, LDP automatically redistributes IGP routes, including the BGP routes that have been redistributed into IGP. Then, LDP assigns labels to the IGP routes and labeled BGP routes, if these routes are permitted by an LSP generation policy. LDP does not automatically redistribute BGP unicast routes if the 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 unicast routes to assign labels to them. For this network to operate correctly, you can enable LDP to redistribute BGP unicast routes. If the routes are permitted by an LSP generation policy, LDP assigns labels to them to establish LSPs. For more information about carrier's carrier, see "Configuring MPLS L3VPN."

To configure LDP to redistribute BGP unicast routes:

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:

    1. mpls ldp

    2. vpn-instance vpn-instance-name

N/A

3. Enable LDP to redistribute BGP IPv4 unicast routes.

import bgp [ as-number ]

By default, LDP does not redistribute BGP IPv4 unicast routes.