Hi,
with vxlan it is possible to use multiple remote addresses to connect 3 or more hosts to one vxlan-device.
Vyos currently allows only one remote peer (or a multicast group or L3VPN).
Maybe it's because the "ip"-command only allows one.
If you want to join multiple hosts then with Vyos there is no other solution than L3VPN (or multicast).
For 10+ hosts I really do recommend L3VPN. But for only 3-5 hosts multiple remotes would be much simpler. Also if you want to join other linux hosts without FRR.
Using Debian and iproute2 this can be achieved by using something like this in /etc/network/interfaces:
iface vxlan10 vxlan-id 10 vxlan_remoteip 10.0.0.1 vxlan_remoteip 10.0.0.2 mtu 1450
Proxmox also uses that for their SDN feature.
On the shell you had to add the Interface without the remote parameter
ip link add vxlan10 type vxlan id 10 dev eth0 dstport 0
and then add the remotes using “bridge” commands like this:
bridge fdb append to 00:00:00:00:00:00 dst 10.0.0.1 dev vxlan10 bridge fdb append to 00:00:00:00:00:00 dst 10.0.0.2 dev vxlan10
(it's also possible to define the port for every remote)
Nice documented source from 2017:
https://joejulian.name/post/how-to-configure-linux-vxlans-with-multiple-unicast-endpoints/
(he added a patch for systemd to get this feature there)
At current it is only possible to add one remote like this on Vyos:
set interfaces vxlan vxlan10 remote '10.0.0.1' set interfaces vxlan vxlan10 vni '10'
Then the "Forwarding Database" (fdb) looks like this:
vyos@vyos# bridge fdb show dev vxlan10 00:00:00:00:00:00 dst 10.0.0.1 self permanent
It would be nice to be able to set something like this:
set interfaces vxlan vxlan10 remote '10.0.0.1' set interfaces vxlan vxlan10 remote '10.0.0.2' set interfaces vxlan vxlan10 vni '10'
To get such a forwarding database:
vyos@vyos# bridge fdb show dev vxlan10 00:00:00:00:00:00 dst 10.0.0.1 self permanent 00:00:00:00:00:00 dst 10.0.0.2 self permanent
I already mentioned on the forum:
https://forum.vyos.io/t/using-vxlan-with-multiple-unicast-remotes/
And I already wrote a small patch to implement this feature.
Immediate after getting a Task ID I'll do a PR.