notice that this container has no IP (eth0 is not configured)
notice that all other containers have same problem
manual kick-start dhcp-client not working (got timeout)
dnsmasq is alive (and listening, no errors logged)
Is is hard for me to correlate this w/ other events such as putting laptop to sleep, turning WiFi/LAN on/of, etc.
I can be “fixed” by service lxd restart , but this is PITA cause all container go stop ;/
LXD (4.14) from snap on ubuntu 20.04
Facts and tests (facts applies to all container on this machine)
A) eth0 in container (A) is up. I am able to address the interface manually ( x.y.z.201/24 )
B) I can do the same on other container (B) ( for example x.y.z.202/24 )
C) lxdbr0 is UP and addressed ( x.y.z.1/24 )
D) I can ping A <-> B (
-> and tcpdump inside showing packets)
-> tcpdump on host (on -i lxdbr0 ) shows nothing)
E) I CAN NOT ping/tcp/udp A <-> HOST or B <-> HOST
F) I created another interface on host (TMP1), addresed x.y.z.222/24 and added to bridge (lxdbr0)
-> can ping HOST (and visible in tcpdump on host)
-> can not ping containers (A) or (B)
G) iptables has no DROP
H) ebtables is empty
I) there is no conflict in address space w/ other interfaces
J) Routing table is OK (both in host and containers)
K) ip_forwarding is =1
Got this situation right now (since yesterday ).
Keeping in that state cause want to permanently fix it
For now I only keep 2 containers alive (rest is stopped)
HOST
enx00e04c680556 is my ethernet connection
wlp59s0 is Wifi ( state: down)
28:0?>ip r
default via 192.168.0.1 dev enx00e04c680556 proto dhcp metric 100
192.168.0.0/24 dev enx00e04c680556 proto kernel scope link src 192.168.0.185 metric 100
192.168.250.0/24 dev lxdbr0 proto kernel scope link src 192.168.250.1
28:0?>ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: wlp59s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether dc:fb:48:5f:38:22 brd ff:ff:ff:ff:ff:ff
17: lxdbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:16:3e:35:ad:d5 brd ff:ff:ff:ff:ff:ff
inet 192.168.250.1/24 scope global lxdbr0
valid_lft forever preferred_lft forever
inet6 fe80::6af9:a797:2635:be4f/64 scope link noprefixroute
valid_lft forever preferred_lft forever
30: vethbc77751d@if29: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master lxdbr0 state UP group default qlen 1000
link/ether 66:a2:df:2b:91:91 brd ff:ff:ff:ff:ff:ff link-netnsid 2
35: vethba5a46e8@if34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master lxdbr0 state UP group default qlen 1000
link/ether 36:16:68:4c:ee:f1 brd ff:ff:ff:ff:ff:ff link-netnsid 0
36: enx00e04c680556: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:68:05:56 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.185/24 brd 192.168.0.255 scope global dynamic noprefixroute enx00e04c680556
valid_lft 67882sec preferred_lft 67882sec
inet6 2a02:a31a:4240:f100:8e65:ec66:fafe:af3c/64 scope global dynamic noprefixroute
valid_lft 935630sec preferred_lft 330830sec
inet6 fe80::c7ff:7705:c652:916d/64 scope link noprefixroute
valid_lft forever preferred_lft forever
# brctl show
bridge name bridge id STP enabled interfaces
lxdbr0 8000.00163e35add5 yes vethba5a46e8
vethbc77751d
CONTAINER A
ubuntu@pwn1:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
29: eth0@if30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:16:3e:46:be:c2 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.250.130/24 brd 192.168.250.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:fe46:bec2/64 scope link
valid_lft forever preferred_lft forever
ubuntu@pwn1:~$ ip r s
default via 192.168.250.1 dev eth0
192.168.250.0/24 dev eth0 proto kernel scope link src 192.168.250.130
And those addresses in the containers are added manually by yourself or via DHCP?
I’m trying to understand the problem clearly as earlier you mentioned there were no IPs, and then later you mentioned that you can ping between containers (the two scenarios being mutually exclusive).
Can you try running sudo tcpdump -i lxdbr0 -nn on the host and then try pinging the lxdbr0 IP from one of the containers that has the manually added IPs, and see what you get on the host-side from tcpdump?
I is magically (as always - after lxd service restart, forced by OS ) back to normal
Waiting for this to happen again (and it will)
(posting output of this command in ‘working’ state anyway - but AFAIR it was the same)
# bridge link show
46: veth7d9131f5@if45: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master lxdbr0 state forwarding priority 32 cost 2
48: vethe9f19c50@if47: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master lxdbr0 state forwarding priority 32 cost 2