Use this command to configure LDP label allocation filtering.
bgp-routes | Specifies that LDP will allocate labels for BGP routes. |
host-routes | Specifies that LDP will allocate labels for host routes only. |
The MPLS LDP allocates labels for all routes except BGP.
Global router or named VRF global configuration mode.
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.
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)->