<div dir="ltr"><div><font face="monospace">Posted a wrong config for br0.netdev. the correct one is the following</font></div><font face="monospace">br0.netdev</font><div><font face="monospace"><br></font></div><div>[NetDev]<br>Name=br0<br>Kind=bridge<br><br>[Bridge]<br>DefaultPVID=1<br>VLANFiltering=yes<font face="monospace"><br></font></div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 18, 2022 at 1:43 AM Salvatore Mazzarino <<a href="mailto:apocalipse89@gmail.com">apocalipse89@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><font face="monospace">I have a physical interface named enp89s0 on a machine which runs VM with libvirt.These VMs have to run in a VLAN. The physical interface is attached to the default VLAN (1).<br><br>My config<br><br><a href="http://br0.dev" target="_blank">br0.dev</a><br><br>[NetDev]<br>Name=br166<br>Kind=bridge<br><br>br0.network<br><br>[Match]<br>Name=br0<br><br>[Network]<br>VLAN=eth.1<br>VLAN=eth.166<br><br>[BridgeVLAN]<br>VLAN=1<br><br>[BridgeVLAN]<br>VLAN=166<br><br>br166.netdev<br><br>[NetDev]<br>Name=br166<br>Kind=bridge<br><br>br166.network<br><br>[Match]<br>Name=br166<br>[Network]<br>DHCP=no<br><br>enp89s0.network<br><br>[Match]<br>Name=enp89s0<br>[Network]<br>Bridge=br0</font><div><font face="monospace"><br></font></div><div><font face="monospace">eth.1.netdev</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">[NetDev]<br>Name=eth.1<br>Kind=vlan<br><br>[VLAN]<br>Id=1<br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace">eth.1.network</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">[Match]<br>Name=eth.1<br><br>[Network]<br>DHCP=yes<br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace">eth.166.netdev</font></div><div><font face="monospace"><br>[NetDev]<br>Name=eth.166<br>Kind=vlan<br>[VLAN]<br>Id=166<br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace">eth.166.network</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">[Match]<br>Name=eth.166<br>[Network]<br>Bridge=br166<br>DHCP=no</font><br></div><div><font face="monospace"><br></font></div><div><font face="monospace">the interface eth.1 correctly gets UP and it receives the IP addr from the primary lan. when I connect my libvirt VMs to the br166 unfortunately they do not get any IPs from the VLAN 166 (DHCP is there so they should get it).</font></div><div><font face="monospace">I'm sure my networkd config is off in some parts but not sure where. conceptually it should be correct.</font></div></div>
</blockquote></div>