I have the following use case. A machine which runs VMs that have to be located to a VLAN with ID 166. The traffic must go out of an physical interface enp89s0
which is connected to the primary network non-tagged traffic. For such use cases in Linux a bridge helps to connect stuff together. The machine uses a Linux distro so I use netword
to configure the network interfaces. Here my attempts:
br0.netdev
[NetDev]
Name=br0
Kind=bridge
[Bridge]
DefaultPVID=1
STP=no
VLANFiltering=yes
br0.network
[Match]
Name=br0
[Network]
VLAN=enp89s0
VLAN=eth166
[BridgeVLAN]
VLAN=1
[BridgeVLAN]
VLAN=166
I have considered that the default lan has VLAN=1
.
The problem is that when I apply this configuration the enp89s0
interface loses IP addresses and get unreachable.
So my question here is how to have a bridge configured properly that deal with a VLAN and a network untagged.