The setup is simple:
I am moving some client services into an LXD 3.0 container under Ubuntu 18.04. Among the services are some vlans created on one NIC.
The setup is:
LXD 3.0 container --> Ubuntu 18.04 server --> switch --> local lan
The ubuntu 18.04 server provides DHCP, DNS, NTP, services for the local lan.
I tried using a physical NIC mapping (ens2f2 to peth0) onto the container and the services worked. I then a tried adding vlans onto peth0 like peth0.10 for the 10.0.10.x subnet, peth0.20 for the 10.0.20.x subnet but these didn’t work.
What am I doing wrong or is there any other way I can achieve this?