< Home

vxlan vni

Function

The vxlan vni command binds a VNI to a BD.

The undo vxlan vni command unbinds a VNI from a BD.

Format

vxlan vni vni-id

undo vxlan vni vni-id

Parameters

Parameter Description Value
vni-id

Specifies the VNI of a VXLAN. A VNI is similar to a VLAN ID. Each VNI identifies a VXLAN segment. VMs in different VXLANs cannot directly communicate at Layer 2.

Each VNI indicates a tenant, even if multiple terminal users belong to one VNI. A VNI consists of 24 bits. Theoretically, up to 16 M tenants are supported.

Each VNI is unique in a VXLAN.

The value is an integer ranging from 1 to 16777215.

Views

BD view

Default Level

2: Configuration level

Usage Guidelines

On a VXLAN Layer-2 service access device, a VLAN is bound to a BD, mapping the local VLAN to a VNI.

Example

# In the BD view, bind a VXLAN VNI to the BD.

<sysname> system-view
[sysname] bridge-domain 1
[sysname-bd-1] vxlan vni 4096

# In the BD view, unbind a VXLAN VNI from the BD.

<sysname> system-view
[sysname] bridge-domain 1
[sysname-bd-1] undo vxlan vni 4096
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic