Hi,
I am using lxd 4.19 (compiled from source ) , the issue is not able to ping to outside from container
root@vm767800:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
below are the network configs
root@vm767800:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address X.X.X.X
netmask 255.255.255.255
gateway 10.0.160.1
pre-up ip -4 route add dev eth0 10.0.160.1/32
root@vm767800:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.160.1 0.0.0.0 UG 0 0 0 eth0
10.0.160.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
root@vm767800:~#
on the host
root@cpu-6251:~# ifconfig lxdbr0
lxdbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.160.1 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fd42:1f37:29a:db1::1 prefixlen 64 scopeid 0x0<global>
inet6 fe80::216:3eff:fe45:9ed prefixlen 64 scopeid 0x20<link>
ether 00:16:3e:45:09:ed txqueuelen 1000 (Ethernet)
RX packets 21602 bytes 1644821 (1.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13229 bytes 1563036 (1.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@cpu-6251:~# ifconfig lxcbr0
lxcbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 10.0.3.1 netmask 255.255.255.0 broadcast 10.0.3.255
ether 00:16:3e:00:00:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
could anyone help me on this ?