In a VXLAN overlay gateway configuration that uses Layer 2 extension, associates VLANs with VXLAN Network Identifiers (VNIs).
VXLAN overlay gateway configuration mode
Note the following conditions:
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