How does one assign a virtual machine to a particular vlan? Using a vlan interface as a bridge member doesn’t appear to work.
nmcli con add type vlan con-name eno2.vlan401 ifname eno2.vlan401 dev eno2 id 401
nmcli con add type bridge con-name br.vlan401 ifname br.vlan401
nmcli con add type bridge-slave ifname eno2.vlan401 master br.vlan401
If I direct attach the VM nic to br.vlan401, it doesn’t work. (I use cockpit for VM management, so the “direct attach” terminology comes from that). I assume I must create a separate bridge for each VLAN as the cockpit interface doesn’t have any VLAN options.
I’m guessing vlan interfaces can’t be bridge members leading me to believe that what I want to do is not possible.