vlan

Syntax

vlan <VLAN-ID>

no vlan <VLAN-ID>

Description

Associates an existing VLAN with a VNI. Only one VLAN can be associated with a VNI. To change the VLAN associated with a VNI, issue the vlan command with a different VLAN ID.

The no 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 - 4040.

Authority

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

Examples

Assigning VLAN 10 to VNI 1000:

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

Deleting VLAN 10 from VNI 1000:

switch(config)# int vxlan 1
switch(config-vxlan-if)# vni 1000
witch(config-vni)# no vlan 10