Configuring LDP route injection

Configure LPD route injection to allow the Extreme device to inject routes into LDP by referencing a prefix list and advertise the FEC to the LDP peers. By default, LDP advertises all /32 prefixes that are learned from the loopback interfaces to all other LDP peers.

To configure LDP route injection, perform the following steps:
  1. In privileged EXEC mode, enter global configuration mode.
    device# configure terminal
    
  2. Configure the prefix list to filter the route.
    device(config)# ip prefix-list list1 permit 10.2.2.2/32 
    
    In this example, a filter is configured to inject route 10.2.2.2/32.
  3. Enter router MPLS configuration mode.
    device(config)# router mpls
  4. Enter LPD configuration mode.
    device(config-router-mpls)# ldp
  5. Enter the advertise-fec command to configure LDP route injection.
    device(config-router-mpls-ldp)# advertise-fec list1 
     
    LDP route injection is configured to inject the routes by referencing the list1 prefix list into LDP and advertise the FEC to the LDP peers.
  6. Access privileged EXEC mode.
    device(config-router-mpls-ldp)# Ctrl-z
  7. Verify the LDP route injection configuration.
    device# show running-config router mpls ldp
    router mpls
     ldp
      ....
      advertise-fec list1
     !
    !
    
  8. Verify that the LDP route injection has been injected into the LDP label information database.
    device# show mpls ldp database
    Session 10.3.3.3:0 - 10.5.5.2:0
     Downstream label database:
       Label     Prefix           State
     Upstream label database:
       Label     Prefix
       3         10.2.2.2/32
    

Example

The following configuration is an example of the previous steps.

device(config)# ip prefix-list list1 permit 10.2.2.2/32
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# advertise-fec list1