vlan

Syntax

vlan< vlan id >没有vlan< vlan id >

描述

Associates an existing VLAN with a VNI. Only one VLAN can be associated with a VNI and the VNI must have symmetric routing disabled. To change the VLAN associated with a VNI, execute the commandvlanwith a different VLAN ID.

The没有form of this command removes the specified VLAN from a VNI. Traffic on the specified VLAN is no longer bridged on the VXLAN interface.

Command context

config-vni-

Parameters

< vlan id >

Specifies the number of an existing VLAN. Range: 2 to 4040.

权威

Administrators or local user group members with execution rights for this command.

Examples

VLAN分配10to VNI1000:

switch(config)#interface vxlan 1switch(config-vxlan-if)#vni 1000switch(config-vni-1000)#vlan 10

Deleting VLAN10from VNI1000:

switch(config)#interface vxlan 1switch(config-vxlan-if)#vni 1000witch(config-vni-1000)#没有vlan 10