API Guide

4. Configure untagged access ports.
5. (Optional) Enable routing for hosts on different virtual networks.
6. Advertise the local VXLAN source IP address to remote VTEPs.
7. (Optional) Configure VLT.
Configure source IP address on VTEP
When you configure a switch as a VXLAN tunnel endpoint (VTEP), configure a Loopback interface, whose IP address is used as
the source IP address in encapsulated packet headers. Only a Loopback interface assigned to a network virtualization edge
(NVE) instance is used as a source VXLAN interface.
Do not reconfigure the VXLAN source interface or the IP address assigned to the source interface if there is at least one
VXLAN network ID (VNI) already assigned to a virtual-network ID (VNID) on the switch.
The source Loopback IP address must be reachable from a remote VTEP.
An IPv6 address is not supported as the source VXLAN address.
Do not assign the source Loopback interface to a non-default VRF instance.
Underlay reachability of remote tunnel endpoints is supported only in the default VRF.
1. Configure a Loopback interface to serve as the source VXLAN tunnel endpoint in CONFIGURATION mode. The range is from
0 to 255.
interface loopback number
2. Configure an IP address on the Loopback interface in INTERFACE mode. The IP address allows the source VTEP to send
VXLAN frames over the L3 transport network.
ip address ip-address/mask
3. Return to CONFIGURATION mode.
exit
4. Enter NVE mode from CONFIGURATION mode. NVE mode allows you to configure the VXLAN tunnel endpoint on the
switch.
nve
5. Configure the Loopback interface as the source tunnel endpoint for all virtual networks on the switch in NVE mode.
source-interface loopback number
6. Return to CONFIGURATION mode.
exit
Configure a VXLAN virtual network
To create a VXLAN, assign a VXLAN segment ID (VNI) to a virtual network ID (VNID) and configure a remote VTEP. A unique 2-
byte VNID identifies a virtual network. You cannot assign the same VXLAN VNI to more than one virtual network. Manually
configure VXLAN tunnel endpoints in a static VXLAN or use BGP EVPN to automatically discover the VXLAN tunnel endpoints.
1. Create a virtual-network bridge domain in CONFIGURATION mode. Valid VNID numbers are from 1 to 65535.
virtual-network vn-id
2. Assign a VXLAN VNI to the virtual network in VIRTUAL-NETWORK mode. The range is from 1 to 16,777,215. Configure the
VNI for the same tenant segment on each VTEP switch.
vxlan-vni vni
3. (Optional) If you use BGP EVPN for VXLAN, this step is not required To set up a static VXLAN, configure the source IP
address of a remote VTEP in VXLAN-VNI mode. You can configure up to 1024 remote VTEP addresses for a VXLAN VNI.
remote-vtep ip-address
882
VXLAN