vni
Syntax
vni 没有vni
描述
Creates a VNI (Virtual Network Identifier) for the VXLAN interface and changes to theconfig-vni-
context. The VNI identifies a VXLAN segment, which acts as a logical network. The VNI can be associated with either a VLAN or VRF.
- When the VNI is associated with a VLAN, the VNI supports asymmetric routing.
- Enable support for asymmetric routing by executing the
routing
command. By default, the VNI is associated with the default VRF. To use another VRF, execute thevrf
command.
The没有
这个命令将删除specified VNI from the VXLAN interface. All VXLAN tunnels, VXLAN segments, and members associated with the VNI are deleted.
Command context
config-vxlan-if
Parameters
-
-
Specifies the number for a VNI. Range: 1 to 16777214.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Creating VNI1000:
switch(config)#interface vxlan 1switch(config-vxlan-if)#vni 1000switch(config-vni-1000)#
Deleting VNI1000:
switch(config)#interface vxlan 1switch(config-vxlan-if)#没有vni 1000