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-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 the mac address
lookups.
adding vlan awareness means that every mac address 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.