Celestica Documentation Portal

Find your product documents here

Map-vni-vlan

Adds or deletes vlan vni one-to-one mappings to/from a VTEP. It will throw error if the given vlan interface does not exist. Map count can also be given along with this command to configure more than vlan-vni mappings. If the count range is exceeded than 4095, it will throw error.

Syntaxmap vni <1..16777215> vlan <1..4094> [count <1..4094>]
Command modeVTEP
Parameters
  • 1..16777215 – VNI range.

  • 1..4094 – VLAN ID range.

  • 1..4094 – Map count range and it should not exceed 4094.

Usage Use no map vni <1..16777215> vlan <1..4094> count <1..4094> to unconfigure the vlan-vni maps fully or partially. It should throw error if the given parameters are invalid.
Supported Releases1.1.0 or later
Click command config vxlan map add <vxlan_name> <vlan_id> <vni> config vxlan map_range <vxlan_name> <vlan_start> <vlan_end> <vni_start>
Example
sonic(config-if-vxlan-vtep1)# map vni 100010 vlan 10 count 3
sonic(config-if-vxlan-vtep1)# map vni 100015 vlan 15
sonic(config-if-vxlan-vtep1)# no map vni 100010 vlan 10
sonic(config-if-vxlan-vtep1)# no map vni 100011 vlan 11 count 2