VXLAN and RIOT Commands
Use these M4500 CLI commands to configure VXLAN tunnels, VNI-to-VLAN mapping, multicast groups, and RIOT routing, and display VXLAN and VTEP information.
This section describes the commands you use to configure VXLAN and RIOT settings.
vxlan mode
Use this command to set VXLAN mode on the switch.
VXLAN mode must be enabled prior to performing any VXLAN configuration on the switch.
A VXLAN supports two different modes for flood traffic:
1. Multicast mode—A VXLAN uses an IP multicast address as the destination IP address to send broadcast, multicast, and unknown unicast flood frames.
2. Unicast mode—A VXLAN uses each VTEP’s single unicast IP address as the destination IP address to send broadcast, multicast, and unknown unicast flood frames.
By default, the mode is disabled. VXLAN mode must be disabled prior to performing any VXLAN mode changed.
| Default | Disabled |
| Format | vxlan mode {unicast | multicast} |
| Mode | VXLAN Config |
| Parameter | Description |
|---|---|
| unicast | Set VXLAN to unicast mode |
| multicast | Set VXLAN to multicast mode |
no vxlan mode
Use this command to return the VXLAN mode to the default settings.
| Format | no vxlan mode |
| Mode | VXLAN Config |
vxlan source-interface
Use this command to configure VXLAN source interface on the switch.
The “vxlan source-interface” command specifies an interface from which the VTEP derives the source address (IP) that it uses when exchanging VXLAN frames. This address is used by UDP headers to specify source and destination addresses of hosts that send or receive VXLAN encapsulated packets.
A valid VXLAN configuration requires the assignment of an interface to the VTEP and the assignment of a valid IP address to the specified interface.
There is no default source interface assignment.
| Default | None |
| Format | vxlan source-interface {<slot/port> | loopback <loopback-id>| vlan <vlan-id>} |
| Mode | VXLAN Config |
| Parameter | Description |
|---|---|
| <slot/port> | The Logic interface number. |
| <loopback-id> | The Loopback ID. (Range: 0-63) |
| <vlan-id> | The VLAN ID. (Range: 1-4093) |
no vxlan source-interface
Use this command to return VXLAN source interface to the default settings.
| Format | no vxlan source-interface |
| Mode | VXLAN Config |
vxlan udp-port
Use this command to configure VXLAN UDP port on the switch.
Packets bridged to the switch from a specific VLAN are encapsulated with a VXLAN header, sent through a pre-configured UDP port. Packets that arrive through this port are assumed be VXLAN encapsulated packet and forward to the bridging domain of the recipient VLAN which determined by the VNI in the VXLAN header and the VNI and VLAN mapping.
Notice that the UDP port between various VTEPs must be the same, the VXLAN packets can’t forward if the UDP port between source and destination VTEPs are different.
By default, the UDP port is 4789.
| Default | 4789 |
| Format | vxlan udp-port <port-id> |
| Mode | VXLAN Config |
| Parameter | Description |
|---|---|
| <port-id> | The Udp port ID. (Range : 1-65535) |
no vxlan udp-port
Use this command to return VXLAN udp port to the default settings.
| Format | no vxlan udp-port |
| Mode | VXLAN Config |
vxlan unicast-group
Use this command to configure VXLAN unicast group on the switch.
The setting is available when VXLAN mode is unicast mode. Switch uses each VTEP’s source IP address as the destination IP address to send broadcast, multicast, and unknown unicast flood frames. Flood frames are replicated, and encapsulated with a VXLAN header. Packets that have a unicast MAC address will sent directly to the destination VTEP IP address.
There is no default unicast group assignment. The maximum number of unicast group is 32
| Default | None |
| Format | vxlan unicast-group <ipaddr> |
| Mode | VXLAN Config |
no vxlan unicast-group
Use this command to return VXLAN unicast group to the default settings.
| Format | no vxlan unicast-group <ipaddr> |
| Mode | VXLAN Config |
default vxlan multicast-group
Use this command to configure VXLAN default multicast group on the switch.
The setting is available when VXLAN mode is in multicast mode. Switch uses the value as a default multicast group. The default value applied when user creates a new tenant.There is no default multicast group assignment.
| Default | None |
| Format | vxlan default-multicast-group <ipaddr> |
| Mode | VXLAN Config |
| Parameter | Description |
|---|---|
| <ipaddr> | Configure multicast-group IP address |
no vxlan default-multicast-group
Use this command to return default VXLAN multicast group to the default settings.
| Default | None |
| Format | no vxlan default-multicast-group |
| Mode | VXLAN Config |
vxlan vni multicast-group
Use this command to configure VXLAN multicast group on the switch.
The setting is available when VXLAN mode is multicast mode. Switch uses a specified multicast group as the destination IP address to send broadcast, multicast, and unknown unicast flood frames. Flood frames are encapsulated with a VXLAN header and forwarded. Inter-VTEP multicast communications include all VTEPs that are associated with the specified multicast group.
There is no default multicast group assignment.
| Default | None |
| Format | vxlan vni <vn-id> multicast-group <ipaddr> |
| Mode | VXLAN Config |
| Parameter | Description |
|---|---|
| <vn-id> | The VNI ID. (Range:1-16777214) |
| <ipaddr> | Configure multicast-group IP address |
no vxlan vni multicast-group
Use this command to return VXLAN multicast group to the default settings.
| Format | no vxlan vni <vn-id> multicast-group |
| Mode | VXLAN Config |
vxlan vlan vni
Use this command to configure VXLAN VLAN to VNI mapping on the switch.
The “vxlan vlan vni” command associates a VLAN ID with a virtual network identifier (VNI). When a VLAN bridges a packet to the VTI, the packet is encapsulated with a VXLAN header that includes the VNI associated with the VLAN. Packets that arrive on the VTI’s UDP socket are bridged to the VLAN that is associated with the VNI specified by the VXLAN header that encapsulates the packet.
All ports belong the VLAN ID will be configured as VXLAN access port.
| Default | None |
| Format | vxlan vlan <vlan> vni <vn-id> |
| Mode | VXLAN Config |
| Parameter | Description |
|---|---|
| <vlan> | The VLAN ID. (Range:1-4093) |
| <vn-id> | The VNI ID. (Range:1-16777214) |
no vxlan vlan vni
Use this command to delete a specific mapping, which is VXLAN VLAN to VNI mapping.
| Format | no vxlan vlan <vlan> vni <vn-id> |
| Mode | VXLAN Config |
interface vxlan
Use this command to configure VXLAN interface on the switch.
| Default | NA |
| Format | interface vxlan <vxlan-id> |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| <vxlan-id> | The VXLAN ID. (Range: 1-1) |
show vxlan
Use this command to display detailed information about the VXLAN configured on the switch.
| Format | show vxlan |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| Interface | VXLAN interface |
| Mode | VXLAN mode (unicast or multicast) |
| RIOT Mode | RIOT mode (Enable or disable) |
| RIOT Physical Loopback Interface | The loopback interface used for RIOT routing |
| UDP Destination Port | The UDP port which VXLAN uses to send/receive packets |
| Source Interface | The source interface of VXLAN |
| VXLAN and VLAN Mapping | The mapping of VLAN to VNI |
| Unicast Group Address | The IP address used to send broadcast, multicast, and unknown unicast flood frames |
| Multicast Group Address | The multicast group IP address used to send broadcast, multicast, and unknown unicast flood frames |
show vxlan vtep
Use this command to display IP address about the VXLAN remote VTEPs on the switch.
This command only shows remote VTEPs which really have communication with local device. If system doesn’t receive any packet from remote VTEPs, it means there is no communication in the environment, this command shows nothing.
| Format | show vxlan vtep |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| Remote VTEPs for Vxlan | Remote VTEPs which really have communication with local device |
show vxlan address-table
Use this command to display MAC address that VXLAN learning on the switch.
If system doesn’t learn any MAC address from VXLAN, this command shows nothing.
| Format | show vxlan address-table |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| Tenant ID | The tenant ID of VXLAN packet |
| Tenant MAC | Then source MAC address of VXLAN packet |
| VTEP | The source VTEP of VXLAN packet |
| Interface | The interface which receive VXLAN packet |
| Entry Type | Learned or static address |
vxlan riot
Use this command to enable RIOT mode on the switch.
VXLAN must be enabled prior to enabling RIOT on the switch. RIOT is supported only under VXLAN unicast mode.
| Default | Disabled |
| Format | vxlan riot |
| Mode | VXLAN Config |
no vxlan riot
Use this command to return the RIOT mode to the default settings.
| Format | no vxlan riot |
| Mode | VXLAN Config |
vxlan riot-physical-loopback
Use this command to assign an interface as the VXLAN RIOT loopback interface on the switch.
VXLAN RIOT must be enabled prior to assigning an VXLAN RIOT loopback interface on the switch. Switch uses a specified physical port (or port-channel) as an VXLAN loopback port to be an VXLAN access port as well as an L3 router port. Therefore, the VXLAN loopback port need to join the VLAN mapped to VXLAN tenant. This VLAN should be a VLAN routing interface and the other front-end ports should not join to this VLAN.
| Default | None |
| Format | vxlan riot-physical-loopback {<slot/port> | port-channel <1-64>} |
| Mode | VXLAN Config |
| Parameter | Description |
|---|---|
| <slot/port> | The Logic interface number. |
| <port channel id> | The interface number of the port channel. (Range: 1-64) |
Here is the configuration example:
( Switch ) (Config)#interface 0/8
( Switch ) (Interface 0/8)#switchport allowed vlan add tagged 200
( Switch ) (Interface 0/8)#exit
( Switch ) (Config)#interface vlan 200
( Switch ) (if-vlan200)# ip address 192.168.20.1 255.255.255.0
( Switch ) (if-vlan200)#exit
( Switch ) (Config)#interface vxlan 1
( Switch ) (if-vxlan-1)#vxlan riot
( Switch ) (if-vxlan-1)#vxlan riot-physical-loopback 0/8
( Switch ) (if-vxlan-1)#vxlan vlan 200 vni 2001
no vxlan riot-physical-loopback
Use this command to delete the VXLAN RIOT loopback interface on the switch.
| Format | no vxlan riot-physical-loopback |
| Mode | VXLAN Config |