map vlan

In a VXLAN overlay gateway configuration that uses Layer 2 extension, associates VLANs with VXLAN Network Identifiers (VNIs).

Syntax

map vlan [ vlan_id ] vni [ vni ] [ auto ]
no map vlan vlan_id
no map vlan vni

Parameters

vlan_id
A single VLAN ID or range of VLAN IDs. The range is from 1 through 8191. See the Usage Guidelines.
vni
Specifies the VNI (VXLAN Network Identifier) token.
vni
A single VXLAN VNI or range of VXLAN VNIs. Range is from 1 through 16777215. See the Usage Guidelines.
auto
Enables automatic VLAN-to-VNI mapping for every VLAN associated with the tunnel.

Modes

VXLAN overlay gateway configuration mode

Usage Guidelines

Note the following conditions:

Examples

To configure a manual mapping of VLANs to VNIs in "gateway1":

switch(config)# overlay-gateway gateway1
switch(config-overlay-gw-gateway1)# map vlan 10,20-22 vni 5000-5002,6000

This results in the following in the running configuration:

overlay-gateway gateway1
  type layer2-extension mode vxlan-ipv4
  map vlan 10 vni 5000
  map vlan 20 vni 5001
  map vlan 21 vni 5002
  map vlan 22 vni 6000

To configure an automatic mapping of VLANs to VNIs in "gateway1":

switch(config)# overlay-gateway gateway1
switch(config-overlay-gw-gateway1)# map vlan vni auto