< Home

assign vni

Function

The assign vni command allocates a VNI to the virtual system.

The undo assign vni command cancels the allocation.

Format

assign vni vni-id

undo assign vni vni-id

Parameters

Parameter Description Value
vni-id Specifies a VNI ID. It must be the ID of an existing VNI.

Views

Management view of the virtual system

Default Level

3: Management level

Usage Guidelines

By default, no VNI is assigned to the virtual system.

Prerequisites

A VNI must be created in the public system before being assigned to a virtual system.

VNIs cannot be assigned in the following conditions. You need to delete the configurations or dissociate the features.

  • The VNI has been assigned to a virtual system.
  • The Vbdif interface corresponding to the VNI has been referenced in a policy, such as the Source NAT policy of easy IP.

Configuration Impact

VNIs assigned to one virtual system cannot be assigned to other virtual systems.

After a VNI is assigned to a virtual system, the corresponding Vbdif interface is also automatically assigned to the virtual system.

Precautions

When a VNI is assigned to a virtual system or is disassociated from a virtual system, the Vbdif interface configurations (such as IP address and IPSec policy configurations) corresponding to the VNI will be deleted. Exercise caution when assigning or disassociating a VNI to a virtual system to prevent service interruption.

Example

# Allocate VNI 5555 to virtual system vsys1.

<sysname> system-view
[sysname] vsys name vsys1
[sysname-vsys-vsys1] assign vni 5555 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >