Hello all,
I am having this annoying problem. The host is a laptop running Ubuntu 20.04 LTS, configured with a bridge interface: br0 and using the physical eno1 interface as slave. I have connectivity just fine to the LAN and Internet from the LXD host.
Bridge interface status:
kumo2:~$ ip a s dev br0
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 5c:26:0a:40:47:c9 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.12/24 brd 192.168.0.255 scope global br0
valid_lft forever preferred_lft forever
I can ping the internet:
kumo2:~$ ping -c 5 cisco.com
PING cisco.com (72.163.4.185) 56(84) bytes of data.
64 bytes from redirect-ns.cisco.com (72.163.4.185): icmp_seq=1 ttl=231 time=163 ms
64 bytes from redirect-ns.cisco.com (72.163.4.185): icmp_seq=2 ttl=231 time=157 ms
64 bytes from redirect-ns.cisco.com (72.163.4.185): icmp_seq=3 ttl=231 time=155 ms
64 bytes from redirect-ns.cisco.com (72.163.4.185): icmp_seq=4 ttl=231 time=166 ms
64 bytes from redirect-ns.cisco.com (72.163.4.185): icmp_seq=5 ttl=231 time=161 ms
--- cisco.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 155.049/160.169/165.505/3.742 ms
Default profile configuration:
kumo2:~$ sudo lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: DATA1
type: disk
name: default
used_by:
- /1.0/instances/openstack
Container status and configured with static IP address:
kumo2:~$ sudo lxc list
+-----------+---------+---------------------+--------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-----------+---------+---------------------+--------------------------------------------+-----------+-----------+
| openstack | RUNNING | 192.168.0.41 (eth0) | fdca:4894:ac20::5c8 (eth0) | CONTAINER | 0 |
| | | | fdca:4894:ac20:0:216:3eff:feb2:6c33 (eth0) | | |
+-----------+---------+---------------------+--------------------------------------------+-----------+-----------+
Network list:
kumo2:~$ sudo lxc network list
+---------+----------+---------+------+------+-------------+---------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY |
+---------+----------+---------+------+------+-------------+---------+
| br0 | bridge | NO | | | | 2 |
+---------+----------+---------+------+------+-------------+---------+
| docker0 | bridge | NO | | | | 0 |
+---------+----------+---------+------+------+-------------+---------+
| eno1 | physical | NO | | | | 0 |
+---------+----------+---------+------+------+-------------+---------+
| wlp2s0 | physical | NO | | | | 0 |
+---------+----------+---------+------+------+-------------+---------+
Container current configuration:
kumo2:~$ sudo lxc config show openstack
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 20.04 LTS amd64 (release) (20220207)
image.label: release
image.os: ubuntu
image.release: focal
image.serial: "20220207"
image.type: squashfs
image.version: "20.04"
volatile.base_image: 017d8572a250a681aec28aa59da770d95db2b79ba156dd590d5f250d0df974ea
volatile.eth0.host_name: veth02527063
volatile.eth0.hwaddr: 00:16:3e:b2:6c:33
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.power: RUNNING
volatile.uuid: 859e36ad-7b2c-41f7-a99b-aca6b7998f98
devices: {}
ephemeral: false
profiles:
- default
stateful: false
description: ""
Any obvious detail here that I should check or try?
Below is the ICMP test from the LXD host pinging the container, tcpdump capture added as well.
kumo2:~$ ping -c 3 192.168.0.41
PING 192.168.0.41 (192.168.0.41) 56(84) bytes of data.
64 bytes from 192.168.0.41: icmp_seq=1 ttl=64 time=0.118 ms
64 bytes from 192.168.0.41: icmp_seq=2 ttl=64 time=0.090 ms
64 bytes from 192.168.0.41: icmp_seq=3 ttl=64 time=0.089 ms
--- 192.168.0.41 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2053ms
rtt min/avg/max/mdev = 0.089/0.099/0.118/0.013 ms
openstack:~# tcpdump -i eth0 icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
07:43:40.554231 IP 192.168.0.12 > openstack: ICMP echo request, id 5, seq 1, length 64
07:43:40.554279 IP openstack > 192.168.0.12: ICMP echo reply, id 5, seq 1, length 64
07:43:41.583370 IP 192.168.0.12 > openstack: ICMP echo request, id 5, seq 2, length 64
07:43:41.583410 IP openstack > 192.168.0.12: ICMP echo reply, id 5, seq 2, length 64
07:43:42.607309 IP 192.168.0.12 > openstack: ICMP echo request, id 5, seq 3, length 64
07:43:42.607348 IP openstack > 192.168.0.12: ICMP echo reply, id 5, seq 3, length 64
Here is the ICMP test from a host on the same LAN pinging the LXD hos, tcpdump capture added as well.
host1:~$ ping -c 3 192.168.0.12
PING 192.168.0.12 (192.168.0.12) 56(84) bytes of data.
64 bytes from 192.168.0.12: icmp_seq=1 ttl=64 time=1.06 ms
64 bytes from 192.168.0.12: icmp_seq=2 ttl=64 time=0.435 ms
64 bytes from 192.168.0.12: icmp_seq=3 ttl=64 time=0.408 ms
--- 192.168.0.12 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2020ms
rtt min/avg/max/mdev = 0.408/0.633/1.057/0.299 ms
kumo2:~$ sudo tcpdump -i br0 icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes
16:46:25.463313 IP 192.168.0.21 > kumo2.ddns.net: ICMP echo request, id 4277, seq 1, length 64
16:46:25.463634 IP kumo2.ddns.net > 192.168.0.21: ICMP echo reply, id 4277, seq 1, length 64
16:46:26.463238 IP 192.168.0.21 > kumo2.ddns.net: ICMP echo request, id 4277, seq 2, length 64
16:46:26.463343 IP kumo2.ddns.net > 192.168.0.21: ICMP echo reply, id 4277, seq 2, length 64
16:46:27.483308 IP 192.168.0.21 > kumo2.ddns.net: ICMP echo request, id 4277, seq 3, length 64
16:46:27.483384 IP kumo2.ddns.net > 192.168.0.21: ICMP echo reply, id 4277, seq 3, length 64
16:46:47.970641 IP _gateway > kumo2.ddns.net: ICMP _gateway udp port 5351 unreachable, length 48
Here is the ICMP test from a host on the same LAN pinging the LXD container, tcpdump capture added as well.
host1:~$ ping -c 3 192.168.0.41
PING 192.168.0.41 (192.168.0.41) 56(84) bytes of data.
--- 192.168.0.41 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2052ms
The container didn’t capture any packages…
Any suggestions will be appreciated, I am thinking in re-installing and running again the lxd init command.
Sincerely,
good to know, thank you so much! this should be definitely in one of the must FAQ or banner in the forum, warning if you are running docker see this! 