vxlan(4) does not work with vni >= 65536. How to reproduce: on host A: ifconfig vxlan create inet 192.168.200.1/24 vxlanvni 65536 vxlanlocal 192.168.100.1 vxlanremote 192.168.100.2 on host B: ifconfig vxlan create inet 192.168.200.2/24 vxlanvni 65536 vxlanlocal 192.168.100.2 vxlanremote 192.168.100.1 on host A: ping -n 192.168.200.2 host B is unreachable as host B does not respond to arp request.
Can confirm: the bug is still there in 12-STABLE (r364973) I can see transmitted packets encapsulated in vxlan with correct VNI > 65535. It seems that receiving host can't decapsulate such packets.
This should be fixed in 13.0-CURRENT r364257, see: https://reviews.freebsd.org/D26071 With this patch I can set VNI to 70000 and 2000000. So, I think it should be MFC'd to 12-STABLE.
It was fixes long time ago, I suggest closing this PR. https://cgit.freebsd.org/src/commit/?id=a5154bb2e5d6f https://reviews.freebsd.org/rS364257
^Triage: assign to committer that resolved back in 2020.