Making the veb(4) virtual Ethernet bridge VLAN aware
Contributed by Peter N. M. Hansteen on from the virtually bridging the LANs, really dept.
veb(4) virtual Ethernet bridge device is an OpenBSD feature that can make certain setups a lot more manageable than otherwise possible.
Now David Gwynne (dlg@) is fielding a patch on tech@ that would make veb(4) even more capable, by making the device vlan(4) aware.
In the message to tech@, David explains:
List: openbsd-tech Subject: make veb(4) VLAN aware From: David Gwynne <david () gwynne ! id ! au> Date: 2025-10-29 5:54:42 veb(4) is currently vlan unaware, meaning that it assumes that there's a single "namespace" for the mac addresses used by packets handled by the bridge. by default it blocks vlan (and svlan) packets, but if you allow it carry vlan packets it ignores the vlan tag when doing themacaddress lookups. addingvlanawareness means that everymacaddress the bridge learns is now associated with a vlan identifier (vid). ie, the same mac in two different vlans will get separate entries in the forwarding database.

