In the EXAMPLES section of vxlan(4) manpage, I see a multicast dest address 239.1.1.100 with the non standard dest port 8472. Does it mean that for point-to-point tunnels the destination port is static to 4789?
If this is the case, I think that the ifconfig command should at least raise an alert, when the dest port is specified with an unicast dest address. In my example with tcpdump, DEST_IP is unicast. Il giorno mer 15 nov 2023 alle ore 13:06 Stuart Henderson < s...@spacehopper.org> ha scritto: > On 2023/11/15 13:03, Otto Moerbeek wrote: > > On Wed, Nov 15, 2023 at 12:42:46PM +0100, Luca Di Gregorio wrote: > > > > > # uname -a > > > OpenBSD XXXXX.my.domain 7.4 GENERIC#0 amd64 > ... > > > # ifconfig vxlan0 tunnel SOURCE_IP DEST_IP:8472 vnetid 5 > ... > > It helps to read the vxlan(4) manpage, specifcially the paragraph abouts > ports. > > according to EXAMPLES - > > : Prior to the assignment of UDP port 4789 by IANA, some early VXLAN > : implementations used port 8472. A non-standard port can be specified > : with the tunnel destination address: > ^^^^^^^^^^^ > : > : # ifconfig vxlan0 tunnel 192.168.1.100 239.1.1.100:8472 > > which is as set, but it contradicts the ioctl doc - > > : if the destination address is unspecified. A > non-standard UDP > : port for VXLAN packets can be specified by the port in the > : source address, otherwise use 0 to request the default. > The > ^^^^^^ > : addresses may only be configured while the interface is > down. > > so at least there's a doc bug >