-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mismatch between ot ping
and net ping
#34597
Comments
Would be good to see |
The
I have been trying to update all the codebase (I am using the ot-br-agent for the Raspberry Pi and the official OpenThread NCP build for the nRF stick). The behaviour is the same. I am not sure it is a Zephyr issue, but the Border Router seems to work and the errors
where bugging me --and I assumed that this error was internal to the Zephyr networking stuff, as it seems to come from within the framework, but no idea if it is really an error or a harmless log. |
Some additional things I have discovered, that may or may not be relevant here (I apologize for my lack of understanding). If I add a route to the netdata and register that, the
(Note how the route appears in the netdata but does not appear in the The
|
The unicast addresses you have on the interface seem fine - Zephyr should select the right address for an external destination. The On potential misconfiguration I see is
These are usually disabled with OpenThread, since Thread networks don't use these mechanisms. I can't tell for sure if it's reason of the failures you observe (it could be that OT rejects to send ND messages) but for sure it's worth checking how does it behave with these options disabled. I might try to reproduce in a similar setup when I get some time (no promises on when though). |
You are right! Thank you! As I suspected, the problem was caused by my botch attempts on making things work. Once both flags are set to
No need to reproduce it --that was right on the money. After solving it I was gonna say "wouldn't it be nice for the system to complain under that kind of misconfiguration?" but then I realized that a device may have multiple network interfaces, so it may not be appropriate to trigger a build failure (for instance, it is conceivable to have NBR things on a WiFi interface and an OpenThread interface for meshlocal only stuff). |
Well that's definitely something that needs addressing, specifically for multi-inteface. We should rather have an option to enable/disable ND/MLD on each interface separately at runtime instead of relying on static configuration. OpenThread could then enforce that ND/MLD are disabled on its interface. But we're simply not there yet. |
I also ran in to this issue today. I'll second the suggestion that a build error would have been nice. |
Describe the bug
The
ping
on the network subsystem is different than the one on the openthread subsystem.To Reproduce
Build an application for a nRF52840 board. The rellevant flags, AFAICT, are:
Join the device to an OpenThread network. Check that
net ipv6
andot ipaddr
are consistent between them. Try to do a ping to, for instance, the border router:But this fails:
I am also unable to configure the routes in order to perform pings to IPv6 addresses outside the Thread network, but that may be due to my ignorance or misconfiguration up to this point.
Expected behavior
Pings on the IPv6 network should just work.
Impact
I have connectivity issues when trying to configure other things (such as LWM2M). I am not sure if the problem is the same, but I don't know how to diagnose while the pings are behaving like this. Maybe it is intended behaviour but I cannot grasp why.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: