[Bug 289326] bridge(4): VLAN subinterfaces on one member block tagged traffic on others

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 06 Sep 2025 06:54:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289326

Lexi Winter <ivy@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ivy@FreeBSD.org

--- Comment #3 from Lexi Winter <ivy@FreeBSD.org> ---
the intended behaviour here is that if a physical interface has a vlan(4)
configured and is also in a bridge, all tagged traffic received on that
interface goes to if_vlan, not if_bridge.  

the previous behaviour depended on matching the destination MAC address of each
frame to decide whether it should be handled by vlan(4) or bridge(4), which
meant it would "work" in some configurations but not others in a non-obvious
way; in particular, traffic on the same interface for the same VLAN ID could be
delivered to either vlan(4) or bridge(4) depending on its destination address.

in 15.0, the right way to do this is to put the interface in the bridge, then
configure the vlan subinterface on the bridge instead of the physical
interface:

  ifconfig bridge0 create addm oce3
  ifconfig bridge0.2 create

now bridge0.2 will receive traffic on the bridge (from any interface) with vlan
id 2.

-- 
You are receiving this mail because:
You are the assignee for the bug.