vpn-id

Function

The vpn-id command configures a VPN ID for a VPN Instance.

The undo vpn-id command deletes the VPN ID for a VPN Instance.

By default, no VPN ID is configured

Format

vpn-id vpn-id

undo vpn-id vpn-id

Parameters

Parameter Description Value
vpn-id

Specifies a VPN ID.

24-bit AS number:32-bit user-defined index, 101:3 for example. The AS number is an integer ranging from 0 to 0xffffff, and the user-defined index is an integer ranging from 0 to 0xffffffff. The AS number and user-defined index cannot both be 0. Specifically, a VPN instance ID cannot be 0:0.

Views

VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l3vpn write

Usage Guidelines

The vpn-id command creates a globally unique identifier for a VPN instance. In CU separation scenarios, to ensure that the same VPN instances on the control plane and forwarding plane have the same ID, run the vpn-id command to manually set the VPN instance ID.

Example

# Configure the VPN ID.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vrf1
[*HUAWEI-instance vrf1] vpn-id 3:3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >