apply-label per-instance

Function

The apply-label per-instance command applies one label to all VPN instance IPv4 address family or IPv6 address family routes to a peer PE.

The undo apply-label per-instance command disables this function.

By default, the AntiDDoS8000 applies one label to each route of a VPN instance.

Format

apply-label per-instance

undo apply-label per-instance

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

In BGP/MPLS IP VPN networking, if VPN routes on PEs are numerous but MPLS label resources are insufficient, the apply-label per-instance command can be run to minimize MPLS label consumption on PEs.

By default, the system applies for a label for each route in a VPN instance enabled with the IPv4 or IPv6 address family. After the apply-label per-instance command is run in the IPv4 or IPv6 address family view of the VPN instance, the routes of the VPN instance enabled with the corresponding address family will be allocated the same label. For example, a PE is configured with two VPN instances that have 20000 routes in total. By default, 20000 MPLS labels will be allocated to the routes. If the apply-label per-instance command is run, only two MPLS labels will be allocated to the routes.

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

A change in the label allocation mode leads to re-advertising of routes in a VPN instance enabled with the IPv4 or IPv6 address family. Therefore, exercise caution when using the apply-label per-instance command and the undo apply-label per-instance command.

Example

# Apply one label to all the routes of the IPv4 address family of VPN instance 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-instance
Related Topics
ipv4-family
ipv6-family
route-distinguisher

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.