ot-br-posix docker: can't reach docker network from the thread network #9570
-
I'm having an issue where I can't reach the docker network from the (open)thread network. I can ping the docker network from a bash shell in the docker container. But when I try to ping the address using On the native machine (docker -> bash)
in parallel, I ran:
from the
tcpdump on the
tcpdump on the
For me, it looks a bit strange that the icmp6 message is also emitted on the wpan0 interface, however I'm not skilled enough in ot-br-posix, so this might be normal. But the ping request is routed to the eth0 interface, also an answer is received but doesn't seem to reach its destination 'the ot-ctl shell'. Here are the steps to reproduce the issue.
(also tried with Enable/start the thread border router:
The routing table in my docker environment
On my native machine, I've added a default route ipv6 to the docker network
Additionally, I added another thread router (not a border router). When I ping from my native machine to that thread router I can see that my ping message arrives but they are not responded (probably because it lacks a route to my docker network?). I played around with routes and prefixes but without luck. But I guess that resolving the first issue might also resolve this issue. Hope anybody can help, thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I was able to resolve this by manually adding a route to my docker network in the open thread router:
followed by
I also noticed that a route was added for my network:
Now I can ping other thread devices, from my native machine that hosts the border router, in my thread network. I still can't ping However, I still don't understand why I had to add this route manually. Anyone that can explain why this is necessary or what I'm (still) doing wrong? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
fd11:db8:1::/64
prefix appears to be a manually-configured prefix. You should be using the IPv6 prefix that is automatically managed by the border router instead, such that routes are automatically configured and advertised. For more information, see the Thread Border Router - Bidirectional IPv6 Connectivity and DNS-Based Service Discovery codelab.