Can't reach thread devices from docker container in bridge network #11207
Replies: 2 comments
-
A Thread Border Router relies on sending IPv6 Router Advertisements on the infrastructure link to properly configure IPv6 addresses and routes. In your case, the infrastructure link should be the bridge network.
|
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for the quick reply! Thats interesting. I did not know that the prefix of the subnet of the infrastructure network (here the bridge network The subnet I will also check for RA packets on the bridge network. I am not sure if it is possible to influence that in podman/docker, though. Having no experience in the otbr repo, is it unclear to me, why the veth in the second container (home assistant) is not also advertised and able to connect the thread devices. I am pretty sure the problem lies in the bridge, because when running both container on a single pod (aka they share the same interface and talk via |
Beta Was this translation helpful? Give feedback.
-
Running
openthread/otbr:latest
in a docker bridge network I can ping thread devices from within just fine:When I now start a second container in the same bridge network I can of cause ping the otbr-container just fine, but thread devices are not in reach:
So I added a ipv6 route using the infos from
to the second container like so:
ip -6 route add fd68:3d86:8478:b1cd::/64 via fd11:db8:1::1f
.Now I can reach the
fd68
-prefixed addresses:but thread devices themselfes still not. I get a Message dropped by Thread log from the agent:
and the agent:
My requierements are that all containers run via podman on the same host (a pi) and have the least amount of privileged required. The only way I was able to make it work is put both container in one pod. But than I have to give every container full root permissions.
Beta Was this translation helpful? Give feedback.
All reactions