< Home

apply-label per-route

Function

The apply-label per-route command enables the one-label-per-route mode. The VPN instance IPv4/IPv6 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 USG6000E applies one label to all the routes of a VPN instance.

Format

apply-label per-route

undo apply-label per-route

Parameters

None

Views

VPN instance view, VPN instance IPv4 address family view or VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the VPN instance IPv4/IPv6 address family assigns the same label to all routes to be sent to the peer PE. 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.

Example

# Enable the one-label-per-route mode for routes of vpn1.

<sysname> system-view
[sysname] ip vpn-instance vpn1
[sysname-vpn-instance-vpn1] ipv4-family
[sysname-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1
[sysname-vpn-instance-vpn1-af-ipv4] apply-label per-route
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >