Use this command to configure how MPLS labels are assigned.
per-prefix | Specifies that MPLS allocates a unique label for each prefix route in the routing table. |
per-vrf | Specifies that MPLS allocates a single label for the named VRF (default). |
MPLS allocates a single label for the VRF.
A named VRF global configuration mode.
The per-prefix option is not supported when the core network is GRE.
When the MPLS label mode is set to per-vrf, all prefix routes within the routing table for the VRF context use the same label.
The “no” form of this command resets the MPLS label mode to a single label for each VRF.
This example shows how to set the MPLS label mode to per-prefix for VRF vpnA:
System(rw)->router vpnA System(su-vpnA)->configure System(su-vpnA-config)->mpls label mode per-prefix System(su-vpnA-config)->
This example shows how to set the MPLS label mode so that all prefix routes within the routing table for VRF vpnA use the same label:
System(rw)->router vpnA System(su-vpnA)->configure System(su-vpnA-config)->mpls label mode per-VRF System(su-vpnA-config)->