LDP Label Allocation Filtering

By default MPLS LDP allocates labels for all routes except BGP. LDP label allocation filtering allows you to either add the allocation of labels for BGP routes or to allocate labels only for host routes.

Use the mpls ldp-label-allocate command in global router or named VRF global configuration mode to configure LDP label allocation filtering.

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.