vni (System view)

Function

The vni command creates a VXLAN network identifier (VNI) and displays the VNI view. If a VNI has been created, the VNI view is directly displayed.

The undo vni command deletes a configured VNI.

By default, no VNI is created.

Format

vni vni-id

undo vni vni-id

Parameters

Parameter Description Value
vni-id

Specifies a VNI ID.

The value is an integer ranging from 1 to 16777215.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nvo3 write

Usage Guidelines

Usage Scenario

VNIs, similar to VLAN IDs, are used to differentiate VXLAN segments and identify tenants. A VNI identifies only one tenant. If multiple terminal users share the same VNI, they are considered one tenant. To create a global VNI and enter the VNI view, run the vni command. Then, global VNI configurations can be performed in the view.

Example

# Create a VNI with the VNI ID of 4096.
<HUAWEI> system-view
[~HUAWEI] vni 4096
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >