On Wed, 27 Apr 2022 22:49:59 +0200
nimrod <nim...@paralog.it> wrote:

> Please note that I only use Network Manager from the Gnome GUI with a
> static address, and I didn't modify the configuration in several
> months. Never touched /etc/network* dirs and files, nor
> /etc/systemd/network.

Check that NM didn't somehow acquire a spurious route. Edit Connections
-> Your connection, little gear wheel in the lower left. IPv4 Settings
-> Routes.

Are you sure you aren't getting that spurious route from the DHCP
server? To check on that, add a short script to
/etc/NetworkManager/dispatcher.d, called, say, 50environment. It should
look something like

--------------------------------------------------
#!/bin/bash
LOG=/var/log/NetworkManager

{
  echo "Environment is:"
  printenv
  route -n
} >> "${LOG}" 2>&1
--------------------------------------------------

Somewhere in that log file you should find a variable that specifies
extra routes, if any.

You can also check to be sure you are getting the correct
address. That should be in $IP4_ADDRESS. Mine looks like:

IP4_ADDRESS_0=192.168.100.44/24 192.168.100.31

I think the second address is either the DHCP server, or the DNS server.

The variables NM uses are detailed in man 8 networkmanager.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Reply via email to