Making the veb(4) virtual Ethernet bridge VLAN aware
by from OpenBSD Journal on (#7139V)
As some readers tell us whenever they have the chance, the 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-techSubject: make veb(4) VLAN awareFrom: David Gwynne <david () gwynne ! id ! au>Date: 2025-10-29 5:54:42veb(4) is currently vlan unaware, meaning that it assumes that there's asingle "namespace" for the mac addresses used by packets handled by thebridge. by default it blocks vlan (and svlan) packets, but if you allowit carry vlan packets it ignores the vlan tag when doing the mac addresslookups.adding vlan awareness means that every mac address the bridge learnsis now associated with a vlan identifier (vid). ie, the same macin two different vlans will get separate entries in the forwardingdatabase.