Need help in configuring VLAN with internet access inside lxd container


(Xman958) #1

Hi Here is my configuration


auto lo
iface lo inet loopback
iface lo inet6 loopback

auto vmbr0
iface vmbr0 inet static
   address     88.99.x.x
   gateway     88.99.x.x
   bridge_ports eth0
   bridge_stp off
   bridge_fd 1
   bridge_hello 2
   bridge_maxage 12
   up route add -net 88.99.x.x netmask gw 88.99.x.x

auto eth0.4000
iface eth0.4000 inet static
   vlan-raw-device eth0
   mtu 1400

My LXD host has a public IP 88.99.x.x
LXD version 3.7

What other configuration do I need to make to have IP 19.168.1.x inside the container and be able to have internet access, host access, and other lxd hosts access.

I have 9 other lxd hosts with lots of containers who are unable to communicate with containers in other hosts

I really need your expert help.