I have a bunch of Ubuntu machines on my work ethernet LAN and I need to modify the default gateway.
I'd rather not traipse round, interrupt people's work, to right click an applet, preferring instead to ssh in, which can be automated :-)
I know I can change the default live gateway with ip route replace default via 1.2.3.4
but this does not update NM's stored connection.
In my case each machine will only have one stored wired connection.
How can I update the stored gateway IP from the command line?
/etc/NetworkManager/system-connections
. Changes should be automatically detected and loaded.