Hello,
I configured a bridge interface (name: br0) for lxd on a static IP address.
I configure lxd to use this bridge.
My lxd host is a dhcp and dns server with the IP address 192.168.1.35. My router has the IP address 192.168.1.1.
My container receives an address with the dhcp server (192.168.1.100) but it can not communicate with the rest of my network.
When I try to ping my host lxd 192.168.1.35 everything works fine but if I well my router nothing happens.
I have enabled ip-forwarding.
Network configuration:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto br0
iface br0 inet static
address 192.168.1.35
netmask 255.255.255.0
gateway 192.168.1.1
nameserver 192.168.1.35
bridge_ports eno1
auto eno1
iface eno1 inet manual
route on lxd host:
default via 192.168.1.1 dev br0 onlink
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.35
route on container:
default via 192.168.1.1 dev eth0
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.100