vtnet with vlan doesn't work without promiscuous mode

Marco Moock <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>
Hello!

I have a virtualbox FreeBSD 15 machine.

I have a bridged interface (bridge in Virtualbox) to a physical trunk
interface on a Debian host. If I boot Fedora in such a situation, that
works fine - I can use the tagged VLANs from inside the VM.

On FreeBSD, that only works if promiscuous mode is enabled for the
virtual vtnet0.5 nic (that enabled promisc-mode for vtnet0 too).

If running without it, I do not see the incoming NDP multicast traffic,
outgoing is fine

I verified that using ifconfig and starting tcpdump with and without 
--no-promiscuous-mode.

The first issue is that incoming IPv6 NDP multicast traffic is not being
seen when promiscuous mode is off, if I enable it, all is fine.

I confirmed that the system is listening on the multicast addresses
(regardless of promisc), in my case ff02::1:ff6c:2017.
The corresponding multicast MAC is also there:

[m@test ~]$ netstat -na -I vtnet0.5
Name       Mtu Network               Address
   Ipkts Ierrs Idrop    Opkts Oerrs  Coll vtnet0.5  1500 <Link#4>
       08:00:27:6c:20:17                       307     0     0       64
    0     0 33:33:00:00:02:02      261             24 33:33:93:ec:db:5b
     261             24 33:33:ff:93:ec:db      261             24
                          33:33:00:00:00:01      261             24
                          33:33:ff:6c:20:17      261             24
vtnet0.5     - fe80::%vtnet0.5/64    fe80::a00:27ff:fe6c:2017%vtnet0.5
      30     -     -       60     -     - ff02::202%vtnet0.
                          ff01::1%vtnet0.5 
                          ff02::2:93ec:db5b
                          ff02::2:ff93:ecdb
                          ff02::1%vtnet0.5 
                          ff02::1:ff6c:2017
vtnet0.5     - 2a01:170:118f:5::/64  2a01:170:118f:5:a00:27ff:fe6c:2017
       0     -     -        0     -     - ff02::202%vtnet0.
                          ff01::1%vtnet0.5 
                          ff02::2:93ec:db5b
                          ff02::2:ff93:ecdb
                          ff02::1%vtnet0.5 
                          ff02::1:ff6c:2017
[m@test ~]$ 

How can I further diagnose that?

I've already checked the situation with Fedora in another VM in bridge
mode, no promiscuous mode is needed to communicate, so I assume
this issue is in the FreeBSD VM.

Please let me know if you need further info.

-- 
kind regards
Marco

Send unsolicited bulk mail to [email protected]
signature.asc (application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCAA5FiEEpXefSZn9R6zNZtTQE76RLz2tRfAFAml7C6wbFIAAAAAABAAO
bWFudTIsMi41KzEuMTEsMiwyAAoJEBO+kS89rUXwjJsQAMk6enmo8tk7toQx8cRh
Ysits7EKYflHreX66dbU/MhyzRZWRb5TKlJfwca03cgEmEBIzgfg4INA5WcF9QyH
BJquMsF8W840Fh7zHQUEK6YNihLOFPVPxRrocSrvaZxWwHVRUfc2qXD++ub7TgUc
ScP7XkbVvYYTl4o9+AAiTEHuhJv4gki6O+aCFIlx4ObEB0JUMVHdD9NOrpT4mytj
AyhdJRgl1co9GEOyuwcM8XeWU65v2YSrQ+Jo+0xjwXPa1FlQjO+VVUt59Q4jiMSF
8/2WCP4j/8BeIRuJ2sFaGa+Ut4tD+CWDmvJXv+eszKTMR8KvVLW8S6ZX4LxleBXv
z33Yb7ALGaKNRDBuD5qM431CE0Z5onXtHZZf9bA9eF/3E/eOlMtpXbfs8tMkXyz3
OEFZsHOvz+uYjh9NAAr75xdfV1nf6WgQ5ZpYToM/b9uH2oef97K+rd/CwSwDPcQc
Us1j5jZvd6zEQN9P0uuMsewSiRQr286YMHidISZaVoTIdaso/AhiTtl4w0aiG1vn
J1JOL1463Np8LMbRch4kzH5p/zE2oa8SMWGhQqRM6BFSSNv7tdg03HyviAPlw8Sb
3PDSX7orjfaq8NQmbDjlyK42v7ce+eV8UXq45CPwdzqYtX6G3j5wVuOGDz8AYarB
Mc/pkIvkBVRI8i7/Z09uwkul
=xi54
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.