Hi,
After starting a container, a PING from inside the container to any address beyond the host it can take up to a few minutes before the replies start flowing.
The network address is 172.20.1.0/24, with a gateway of 172.20.1.1
The host address is 172.20.1.191
The container address is 172.20.1.181
The host and container are connected via vmbr0.
The host can immediately ping all addresses.
I have run packet captures against both vmbr0 and veth100i0 and can see that the ARP replies are only forwarded after a delay.
Attached are the relevant packet captures showing the replies are present on vmbr0, but not forwarded to veth100i0.
vmbr0:
veth100i0:
I have tested using debian 10 and debian 11 container templates with the same result.
Am I doing something wrong?
After starting a container, a PING from inside the container to any address beyond the host it can take up to a few minutes before the replies start flowing.
Code:
root@deb-11-container:~# ping 172.20.1.1
PING 172.20.1.1 (172.20.1.1) 56(84) bytes of data.
From 172.20.1.181 icmp_seq=1 Destination Host Unreachable
From 172.20.1.181 icmp_seq=2 Destination Host Unreachable
From 172.20.1.181 icmp_seq=3 Destination Host Unreachable
.......
From 172.20.1.181 icmp_seq=139 Destination Host Unreachable
From 172.20.1.181 icmp_seq=140 Destination Host Unreachable
From 172.20.1.181 icmp_seq=141 Destination Host Unreachable
64 bytes from 172.20.1.1: icmp_seq=142 ttl=64 time=2049 ms
64 bytes from 172.20.1.1: icmp_seq=143 ttl=64 time=1025 ms
64 bytes from 172.20.1.1: icmp_seq=144 ttl=64 time=1.05 ms
........
64 bytes from 172.20.1.1: icmp_seq=167 ttl=64 time=0.299 ms
64 bytes from 172.20.1.1: icmp_seq=168 ttl=64 time=0.298 ms
64 bytes from 172.20.1.1: icmp_seq=169 ttl=64 time=0.417 ms
^C
--- 172.20.1.1 ping statistics ---
169 packets transmitted, 28 received, +141 errors, 83.432% packet loss, time 171974ms
rtt min/avg/max/mdev = 0.298/110.251/2048.924/418.693 ms, pipe 4
root@deb-11-container:~#
The network address is 172.20.1.0/24, with a gateway of 172.20.1.1
The host address is 172.20.1.191
The container address is 172.20.1.181
The host and container are connected via vmbr0.
The host can immediately ping all addresses.
I have run packet captures against both vmbr0 and veth100i0 and can see that the ARP replies are only forwarded after a delay.
Attached are the relevant packet captures showing the replies are present on vmbr0, but not forwarded to veth100i0.
vmbr0:
Code:
No. Time Source Destination Protocol Length Info
317 80.873525 c6:bc:ef:ae:e6:fc Broadcast ARP 42 Who has 172.20.1.1? Tell 172.20.1.181
318 80.873956 c6:bc:ef:ae:e6:fc Broadcast ARP 60 Who has 172.20.1.1? Tell 172.20.1.181
319 80.873990 VMware_8d:e3:1b c6:bc:ef:ae:e6:fc ARP 60 172.20.1.1 is at 00:00:5e:00:01:03
320 80.874202 VMware_8d:e3:1b c6:bc:ef:ae:e6:fc ARP 60 172.20.1.1 is at 00:00:5e:00:01:03
321 81.897527 c6:bc:ef:ae:e6:fc Broadcast ARP 42 Who has 172.20.1.1? Tell 172.20.1.181
322 81.898458 VMware_8d:e3:1b c6:bc:ef:ae:e6:fc ARP 60 172.20.1.1 is at 00:00:5e:00:01:03
323 81.898458 c6:bc:ef:ae:e6:fc Broadcast ARP 60 Who has 172.20.1.1? Tell 172.20.1.181
324 81.898458 VMware_8d:e3:1b c6:bc:ef:ae:e6:fc ARP 60 172.20.1.1 is at 00:00:5e:00:01:03
325 81.898486 172.20.1.181 172.20.1.1 ICMP 98 Echo (ping) request id=0xc41d, seq=79/20224, ttl=64 (reply in 328)
326 81.898486 172.20.1.181 172.20.1.1 ICMP 98 Echo (ping) request id=0xc41d, seq=80/20480, ttl=64 (reply in 329)
327 81.898487 172.20.1.181 172.20.1.1 ICMP 98 Echo (ping) request id=0xc41d, seq=81/20736, ttl=64 (reply in 330)
328 81.898788 172.20.1.1 172.20.1.181 ICMP 98 Echo (ping) reply id=0xc41d, seq=79/20224, ttl=64 (request in 325)
329 81.898844 172.20.1.1 172.20.1.181 ICMP 98 Echo (ping) reply id=0xc41d, seq=80/20480, ttl=64 (request in 326)
330 81.898844 172.20.1.1 172.20.1.181 ICMP 98 Echo (ping) reply id=0xc41d, seq=81/20736, ttl=64 (request in 327)
veth100i0:
Code:
No. Time Source Destination Protocol Length Info
158 79.850065 c6:bc:ef:ae:e6:fc Broadcast ARP 60 Who has 172.20.1.1? Tell 172.20.1.181
159 80.873550 c6:bc:ef:ae:e6:fc Broadcast ARP 42 Who has 172.20.1.1? Tell 172.20.1.181
160 80.873994 c6:bc:ef:ae:e6:fc Broadcast ARP 60 Who has 172.20.1.1? Tell 172.20.1.181
161 81.897552 c6:bc:ef:ae:e6:fc Broadcast ARP 42 Who has 172.20.1.1? Tell 172.20.1.181
162 81.898489 VMware_8d:e3:1b c6:bc:ef:ae:e6:fc ARP 60 172.20.1.1 is at 00:00:5e:00:01:03
163 81.898498 c6:bc:ef:ae:e6:fc Broadcast ARP 60 Who has 172.20.1.1? Tell 172.20.1.181
164 81.898511 172.20.1.181 172.20.1.1 ICMP 98 Echo (ping) request id=0xc41d, seq=79/20224, ttl=64 (reply in 167)
165 81.898511 172.20.1.181 172.20.1.1 ICMP 98 Echo (ping) request id=0xc41d, seq=80/20480, ttl=64 (reply in 168)
166 81.898512 172.20.1.181 172.20.1.1 ICMP 98 Echo (ping) request id=0xc41d, seq=81/20736, ttl=64 (reply in 169)
167 81.898820 172.20.1.1 172.20.1.181 ICMP 98 Echo (ping) reply id=0xc41d, seq=79/20224, ttl=64 (request in 164)
168 81.898874 172.20.1.1 172.20.1.181 ICMP 98 Echo (ping) reply id=0xc41d, seq=80/20480, ttl=64 (request in 165)
I have tested using debian 10 and debian 11 container templates with the same result.
Am I doing something wrong?
Attachments
Last edited: