Just like my network namespace post, this post is going to be a basic cheat sheet for me so I don’t have to endlessly Google stuff for ages in case I need to use VXLANs again.
What is a VXLAN
Thta’s just a like a VLAN, essentially an overlay network that is not limited to 4000 IDs. It also has some nice features such as auto discovery of peers via broadcast on the same network.
Create a unicast vxlan interface
You can create a vxlan interface like so
 | 
 | 
And mirror on the other host. Note that
IFACEis the “parent” interface of the VXLAN interface, it should be the interface you will use to
communicate with the NUC.REMOTE_IPis the IP of the remote vxlan endpoint, not on the overlay network (so like your LAN IP)LOCAL_IPis the same but for your local machinePORTis the port you will send packets to
It is worth noting you can just omit local IP dstport PORT the kernel should figure it out.
You can also bridge the interface like so:
 | 
 | 
More readings
[1] VXLAN practice 
[2] Multiple unicast peers
[3] VXLAN guide by Vincent Bernat