<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto"><span style="font-family:Courier New;font-size: small">Also to prove that it’s not a switch issue I have launched this configuration and everything works. VMs get IP in the VLAN 166.</span><span style="font-size: small"><br /></span><span style="font-size: small"><br /></span><span style="font-family:Courier New;font-size: small">However this configuration is not very dynamic because I cannot control Libvirt vnet names so I need to match all the vnet interfaces.</span><span style="font-size: small"><br /></span><span style="font-size: small"><br /></span><span style="font-family:Courier New;font-size: 13px">salmazz@nux-11-i7 /e/s/network> cat br0.netdev</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[NetDev]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">Name=br0</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">Kind=bridge</span><span style="font-size: 13px"><br /></span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[Bridge]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">VLANFiltering=yes</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">salmazz@nux-11-i7 /e/s/network> cat br0.network</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[Match]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">Name=br0</span><span style="font-size: 13px"><br /></span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[Network]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">DHCP=yes</span><span style="font-size: 13px"><br /></span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">salmazz@nux-11-i7 /e/s/network> cat enp89s0.network</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px"># This file is managed by Salt via salt://systemd/networkd/templates/profile.jinja</span><span style="font-size: 13px"><br /></span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[Match]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">Name=enp89s0</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[Network]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">Bridge=br0</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[BridgeVLAN]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">VLAN=166</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">salmazz@nux-11-i7 /e/s/network> cat vnet.network</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[Match]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">Name=vnet*</span><span style="font-size: 13px"><br /></span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[Network]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">Bridge=br0</span><span style="font-size: 13px"><br /></span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">[BridgeVLAN]</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">VLAN=166</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">PVID=166</span><span style="font-size: 13px"><br /></span><span style="font-family:Courier New;font-size: 13px">EgressUntagged=166</span><span style="font-size: 13px"><br /></span></div>
</div>
<div name="messageReplySection">On 19. 11. 2022 10:26 +0100, Salvatore Mazzarino <apocalipse89@gmail.com>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">
<div name="messageBodySection">
<div dir="auto"><span style="font-family:Courier New">bridge vlan show</span><br />
<br />
<span style="font-family:Courier New">port vlan-id</span><br />
<span style="font-family:Courier New">enp89s0 1 PVID Egress Untagged</span><br />
<span style="font-family:Courier New">br0 1 PVID Egress Untagged</span><br />
<span style="font-family:Courier New">br166 1 PVID Egress Untagged</span><br />
<span style="font-family:Courier New">eth.166 1 Egress Untagged</span><br />
<span style="font-family:Courier New"> 166 PVID Egress Untagged</span><br />
<span style="font-family:Courier New">virbr0 1 PVID Egress Untagged</span><br />
<br />
<span style="font-family:Courier New">Just to understand. I attach VMs to the br166. In this case also enp89s0 should allow VLAN 166?</span></div>
</div>
<div name="messageReplySection">
<div dir="auto">On 19. 11. 2022 10:17 +0100, Salvatore Mazzarino <apocalipse89@gmail.com>, wrote:</div>
<blockquote style="border-left-color: rgb(26, 188, 156); margin: 5px; padding-left: 10px; border-left-width: thin; border-left-style: solid;"><span style="font-family:Helvetica Neue;font-size: medium">I do not think it's a switch issue. The systemd configuration is surely wrong but I'm not sure where. </span><br />
<br /></blockquote>
</div>
</blockquote>
</div>
</body>
</html>