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.
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.