====== Vxlan config example ======
The following recipe may configurs a vxlan tunnel between a linux host and an Aruba switch.
===== On Ubuntu linux host =====
* ([[ https://joejulian.name/post/how-to-configure-linux-vxlans-with-multiple-unicast-endpoints/| Example source ]])
* Create vxlan device ''vxlan0'' with vxlan network identifier ''42'', remote tunnel host ip and (default) port 4789:
sudo ip link add vxlan0 type vxlan id 42 dev eth1 remote 158.38.153.170 dstport 4789
* Assign ip vtep address and turn up interface:
ip addr add 192.168.0.1/24 dev vxlan0
ip link set up dev vxlan0
===== On Aruba 2930F switch =====
* Prerequisits
* Need vlan with static IP, i.e. vlan 2 for port 2 with IP
(config)# interface 2 untagged vlan 2
(config)# vlan 2 ip address 158.38.153.141
* (The IP set above cannot be on a the same subnet as other IP's set in the switch.)
* Enter configuration and enable vxlan tunnels:
# configure
(config)# vxlan enable
* Create virtual network an associate network id 42 and Vlan 2
(config)# virtual-network 42 2 "Vxlan-net1"
* Untested example commands from [[ https://community.arubanetworks.com/aruba/attachments/aruba/CampusSwitching/3934/3/HPE_VXLAN_between_12900_and_5400R_TCG_v1.1_Mar2016.pdf | hp document]]
vxlan enable
virtual-network 200 50 "vni200"
interface tunnel 13
tunnel name "VXLAN_Tunnel02"
tunnel mode vxlan
tunnel source 10.2.10.2
tunnel destination 10.220.0.2
exit
vxlan tunnel 13 overlay-vlan 50