connectivity check

Thomas Haller thaller at redhat.com
Sat Jun 1 06:39:14 UTC 2024


On Sat, 2024-06-01 at 07:26 +0300, Andrei Borzenkov wrote:
> On 01.06.2024 01:57, Bojan Pogacar wrote:
> > Hi!
> > 
> > After a day of debugging, I can not figure out, why connectivity
> > check
> > are not working. This is my NetworkManager.conf file below. I can
> > see
> > connectivity logs only when executing "nmcli network connectivity
> > check", but I get repsonses only like connectivity: (wwan0,IPv4,45)
> > check completed: FAKE; fake result for all interfaces. Otherwise, I
> > can
> > not see any scheduled checks on 15s intervals.
> > 
> > I've tried many versions from 1.35 to 1.44. I can not see any
> > problems
> > on dbus-monitor, I've also set all values to 0 from 2 for
> > /proc/sys/net/ipv4/conf/*/rp_filter. Even when disabling all
> > incomming
> > and outgoing packets with iptables, I always get full connectivity
> > unless I disconnect wlan, wan, wwan and etc. Then state changes to
> > limited.
> > 
> > Any idea? Thank you.
> > 
> > 
> > [main]
> > dns=systemd-resolved
> > 
> > [connectivity]
> > enabled=true
> > interval=15
> > uri=http://ping.archlinux.org/nm-check.txt
> > response=ok
> > 
> > [logging]
> > level=DEBUG
> > 
> 
> Full log with DEBUG level would be useful.
> 

Yes, always check debug logs (level=TRACE is better).


But possibly try `sudo NetworkManager --print-config`. That may already
shows the problem.


In particular, connectivity check can also be enabled/disabled via D-
Bus. In that case, the setting is stored in
/var/lib/NetworkManager/NetworkManager-intern.conf, which will overlay
your user configuration.

You can also check the status with 

 busctl get-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled 
 busctl get-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckAvailable

Try:
 $ sudo busctl set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled b true


and check `sudo NetworkManager --print-config` again.


Thomas







More information about the Networkmanager mailing list