On Tue, Mar 26, 2024 at 06:33:42PM +0100, Steffen Dettmer wrote: > I changed a gateway on a remote site using /etc/network/interfaces by > changing gateway. However, at reboot some old gateway IP reappears.
So then the question is *which* of the many different subsystems is in use to set the system's default gateway. It might be coming from /e/n/i or from NetworkManager or from systemd-networkd or others. > root@site4-nas:~# ls -l /etc/network/interfaces > -rw-r--r-- 1 root root 117 Mar 26 18:19 /etc/network/interfaces > root@site4-nas:~# grep gateway /etc/network/interfaces > gateway 192.168.2.43 See, that's not useful. That's not how this file is structured. It's NOT just a series of independent lines. We would need to see the entire /e/n/i file to know which interface that gateway definition is associated with, and so on. A gateway definition on an interface that isn't managed by /e/n/i (ifupdown) will do nothing at all. For example, you might have an eno1 definition which includes a gateway line, but which does *not* have an "auto eno1" line to activate it -- in which case the interface might be managed by NetworkManager instead, or something else.