Hi Steffen,
to avoid misunderstandings, I return to your original question:
On Mon, 23 Mar 2026, 'Steffen Zieger' via ganeti wrote:
> But it seems, it's not removing vid 1, which is getting added by default
> and which is the reason, why I'm seeing traffic from vid 1.
> Executing
> bridge vlan del dev tap17 vid 1
> will do the proper thing.
>
> Is there a proper solution for this?
So if "bridge vlan del dev tap17 vid 1" solves your problem, then setting
up your vlan-aware bridge with "ip link set dev gnt-br type bridge
vlan_filtering 1 vlan_default_pvid 0" will solve the problem, too. IMHO it
solves this at the root cause and makes removal at each individual tap
interface obsolete.
On Tue, 24 Mar 2026, 'Steffen Zieger' via ganeti wrote:
> thank you for your response. I guess, your suggested solution might work
> in some cases, but not all.
Yes, probably.
> There might be untagged traffic, which should be received by one instance,
> but not the other.
>
> Maybe I'm reading the docs wrong here:
> "in bridged and openvswitch mode specifies the VLANs that the NIC will be
> connected to. To connect as an access port use n or .n with n being the
> VLAN ID. To connect as an trunk port use :n[:n]. A hybrid port can be
> created with .n:n[:n]. For bridged mode, the bridge needs VLAN filtering
> enabled. Assuming a bridge named gnt-br, this is accomplished by running ip
> link set dev gnt-br type bridge vlan_filtering 1."
>
> My expectation would be to have a NIC which is connected to a single VLAN
> as access port, if VLAN ID is set to e.g. 4000 or .4000 (reading the code,
> "4000" will be converted to ".4000").
That expectation is right and the idea behind. It just depends on how you
setup your bridge. If doing nothing, vlan-id "1 Egress Untagged" will be
there additionally to your primary VLAN i.e 4000. If setting up with
"vlan_default_pvid 0", VLAN 1 won't be present.
> I wonder if I should send a PR to improve the docs or try to come up with a
> fix, which will remove VID 1 if a specific VLAN ID is being set.
The docs could definitively be improved. Always removing VID 1 sounds like
a way for the lazy admin, but might destroy unforeseen network setups???
Thanks, Sascha.