VXLAN or virtual eXtensible local area networks are virtual layer 2 network overlays on top of layer 3 underlays.
VNI: VXLAN 24-bit network ID
VTEP: VXLAN tunnel interface where VSLANS are terminated (this can also be on the hypervisor such as proxmox).
VXLAN Gateway: Object that forwards traffic between VXLANs.
NVE: Network virtualization endpoint (?) or network virtualization interface.
Configuration
Underlay Networks
The underlay networks need site to site connectivity to allow the overlay network to connect. The most common technologies used are OSPF and BGP.
OSPF
I will not specify the OSPF underlay network here as it is just a standard OSPF network. Be sure to allow connectivity end to end including the loopback interfaces (though the loopback configs will be provided as well) as they are what VXLAN terminates the vni to.
OSPF page is here:
OSPF: Nexus
BGP
The same sentiment goes to BGP.
BGP
Overlay Networks
Static
In this lab the first step will be to enable the features we want to use(full ospf connectivity will need to be done up to this point).
(config)#feature vn-segment-vlan-based
(config)#feature nv overlay
We will now create the loopback interfaces.
(config)#interface lo1
(config-if)# ip address "x.x.x.x/32"
Next we will add it to our existing ospf network, change your ospf area and id to whatever you used.
(config-if)# ip router ospf "1" area "0.0.0.0"
We will now start setting up VXLAN by associating the local vlan to a vn-segment (VNI) as well as assigning an access port to this vlan.
(config)#vlan "10"
(config-if)#vn-segment "56501"
(config)#int e1/2
(config-if)#switchport mode access
(config-if)#switchport access vlan "10"
The NVE will now be created. You can/will have multiple member VNIs and this will essentially terminate the virtual VXLAN tunnel to this loopback interface.
(config)#int nve "1"
(config-if-nve)#no shut
(config-if-nve)#source-interface lo"1"
(config-if-nve)#member vni "6501"
(config-if-nve-vni)#ingress-replication protocol "static"
We will set the peer-ip to be the same as the loopback on the other device. You can/will have multiple peers.
(config-if-nve-ingr-rep)#peer-ip "x.x.x.x"
Multicast
Anycast
Show Comamnds
(conf)#show nve peers
(conf)#show run interface "nve1"
(conf)#show ip mroute detail (show multicast route details)