Hi, I’ve been having very intermittent behaviour in my environment where connections drop abruptly. While troubleshooting I’ve realised I’m not confident on my network setup - I understand the netplan configuration, so I can configure the host and I can configure the Incus instances, but I am not sure about the interaction between the two so I wanted some advice. Apologies therefore upfront for what are basic questions.
I’m using Ubuntu 24.04 on the host and instances.
The host’s netplan is like this :
network:
ethernets:
eno1:
dhcp4: false
dhcp6: false
wakeonlan: true
enp1s0:
dhcp4: false
dhcp6: false
bridges:
br0:
interfaces: [eno1]
addresses: [10.1.1.30/24]
nameservers:
addresses: [10.1.1.42,10.1.1.11]
search: [redacted]
routes:
- to: default
via: 10.1.1.1
br1:
interfaces: [vlan10]
addresses: [10.1.10.30/24]
br2:
interfaces: [vlan20]
addresses: [10.1.20.30/24]
br3:
interfaces: [vlan30]
addresses: [10.1.30.30/24]
br4:
interfaces: [vlan40]
addresses: [10.1.40.30/24]
vlans:
vlan10:
id: 10
link: enp1s0
vlan20:
id: 20
link: enp1s0
vlan30:
id: 30
link: eno1
vlan40:
id: 40
link: eno1
version: 2
with the idea being I may need to attach different instances to different VLANs.
If I now attach an instance, either an LXC or a VM to a bridge, will the instance need to be configured to tag its traffic to that VLAN? Ideally I would want to just give the instances simple netplans where they just use their interface (type nic
and bridged
) with the VLAN tag being applied appropriately by the underlying host according to the bridge, but looking at the configuration now I don’t see any reason that would actually happen so I assume I’m just dropping untagged frames from the instance onto the bridge and they’re being pushed out onto the wire in the default VLAN.
What is the correct practice here? I don’t think I should be creating all the VLAN interfaces on the host first (enp1s0.10
etc) and creating bridges on top of those - this doesn’t match any examples in the netplan docs - but I think I’m now doubting everything. Can anyone assist?
Or, more generically - what is best practice for configuring Incus on top of a host with multiple VLANs?