When you define a networking bridge, is it VLAN aware by default?

Title, I am making two vlan interfaces, and they are connected to a bridge which is connected to my Ethernet port, do i need to add any post commands to set up vlans or should it be fine if i connect it directly to proxmox, I mean i am trying alot of networking stuff and I am only getting some of it working so if anyone can tell me if by default bridges are configured so I can hand these interfaces directly to vms and it to be vlan’d that would be appreciated.

I’m not sure what you’re trying to do, but networking.bridges creates normal L2 bridges, they don’t involve any VLAN stuff. If you check the generated systemd unit you’ll see it just does something like this:

ip link add name br0 type bridge

ip link set dev $slave1 master br0
ip link set dev $slave1 up

ip link set dev $slave2 master br0
ip link set dev $slave2 up

You can then create VLANs on top of a bridge, if you want.

In nix how do i make this bridges vlan aware? and not normal L2

With VLAN-aware you mean enabling VLAN filtering, right? I don’t think there’s any option to do that using the networking.bridges option.

If you enable the systemd-networkd backend you can try to override the value like this:


{
  networking.useNetworkd = true;
  systemd.network.netdevs."40-br0" = {
    netdevConfig.VLANFiltering = true;
  };
}