-
Notifications
You must be signed in to change notification settings - Fork 116
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
NetworkManager connectivity check ignores interfaces with no outgoing route #3053
Comments
Hi. I think we are the ones who discovered this issue and reported it via Balena's chat support. It's quite a devastating bug that has left two (out of 11) of our devices offline and required us to arrange site visits. To re-iterate the issue: Assume you have two Internet uplinks that usually both work:
Now at some point, the wired uplink on But now reboot. The device comes back up, but this time fails to realise that What does resolve the issue is to pull the plug on Affected versions: BalenaOS 2.113.4 (genericx86-64-ext) and earlier |
Note that other than in the mentioned NM issue #350, in our case the WWAN connection was never stopped. It might still be related, because at boot time, it takes the WWAN interface significantly longer than the wired one to come up. |
Just a note that adding dedicated DNS servers for specific interfaces addresses this. For example, balenaOS by default adds a Google public DNS resolver that is used by the system resolver. Another resolver can be added in |
On a device with both ethernet and LTE, where ethernet is the primary interface, if it goes down, the connection should switch to LTE.
This usually works fine, but if the wired uplink doesn't have a route to the internet at boot, the NetworkManager's connectivity checks result in a time out, rather than finding the wired uplink isn't available but LTE is.
Disconnecting the wired interface, either physically, or via nmcli device disconnect $IFNAME, then reconnecting it will result in NetworkManager correctly identifying that the LTE modem is preferable.
Could be related to https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/350
The text was updated successfully, but these errors were encountered: