mpls ldp-label-allocate

Use this command to configure LDP label allocation filtering.

Syntax

mpls ldp-label-allocate {bgp-routes | host-routes}
no mpls ldp-label-allocate {bgp-routes | host-routes}

Parameters

bgp-routes Specifies that LDP will allocate labels for BGP routes.
host-routes Specifies that LDP will allocate labels for host routes only.

Defaults

The MPLS LDP allocates labels for all routes except BGP.

Mode

Global router or named VRF global configuration mode.

Usage

The “no” form of this command to set LDP label allocation to the default of all routes except BGP.

For a modification of the LDP label allocation configuration to take affect, the MPLS/LDP session must be reset. Use the no mpls ip command followed by the mpls ip command to reset the MPLS session. Use the mpls label-protocol-ldp command to re-enable the LDP session.

Examples

This example shows how to set the MPLS LDP label allocation filter to include BGP routes for VRF vpnA:

System(rw)->router vpnA
System(su-vpnA)->configure
System(su-vpnA-config)->mpls ldp-label-allocation bgp-routes
System(su-vpnA-config)->

This example shows how to disable MPLS LDP label allocation filter for VRF vpnA and reset the MPLS/LDP session:

System(rw)->router vpnA
System(su-vpnA)->configure
System(su-vpnA-config)->no mpls ldp-label-allocation
System(su-vpnA-config)->no mpls ip
System(su-vpnA-config)->mpls ip
System(su-vpnA-config)->mpls label-protocol-ldp ipv4
System(su-config)->