The vxlan vni command associated a specified VNI with a BD.
The undo vxlan vni command restores the default settings.
By default, no VNI is associated with a BD.
Parameter | Description | Value |
---|---|---|
vni-id | Specifies a VNI ID. |
The value is an integer that ranges from 1 to 16777215. |
Similar to VLAN ID, VNI is used to distinguish VXLAN segments.
On the VXLAN network, one VXLAN segment is a large Layer 2 BD; therefore, VNI and BD have a one-to-one mapping relationship.
You can run this command to configure the mapping relationship between VNIs and BDs. In this way, the VTEP can forward received packets through a correct VXLAN tunnel based on the mapping between BDs and VNIs.