The apply-label per-route command enables the one-label-per-route mode. The VPN instance address family assigns a unique label to each route to be sent to the peer PE.
The undo apply-label per-route command disables the one-label-per-route mode.
By default, the VPN instance address family assigns the same label to all routes to be sent to the peer PE.
VPN instance view, VPN instance IPv4 address family view, VPN instance IPv6 address family view
Usage Scenario
If you want to change the label allocation mode from one-label-per-instance to one-label-per-route, run the apply-label per-route command.
Prerequisite
The route-distinguisher command is run to configure an RD for the VPN instance enabled with the IPv4 or IPv6 address family.
Configuration Impact
The change of the label allocation mode leads to the re-advertising of VPN routes. The services may be interrupted temporarily. Exercise caution when running the apply-label per-route or undo apply-label per-route command.
The apply-label per-instance and apply-label per-route commands are mutually exclusive. If both commands are run, the latest configuration overrides the previous one.