vni
Syntax
vni <VNI-NUMBER>
no vni <VNI-NUMBER>
Description
Creates a VNI (Virtual Network Identifier) for the VXLAN interface and changes to the
config-vni
context. The VNI identifies a VXLAN segment, which acts as a logical network.
If the VNI exists, this command changes to the
config-vni
context.
The
no
form of this command deletes the specified VNI from the VXLAN interface. All VXLAN tunnels, VXLAN segments, and members associated with the VNI are deleted.
Command context
config
Parameters
<VNI-NUMBER>
Specifies the number for a VNI. Range: 1 - 16777216.
Authority
Administrators
Examples
Creating VNI 1000:
switch(config)# interface vxlan 1 switch(config-vxlan-if)# vni 1000 switch(config-vni)#
Deleting VNI 1000:
switch(config)# interface vxlan 1 switch(config-vxlan-if)# no vni 1000