My external network connection was set up before the days of NetworkManager, configured in a /etc/sysconfig/network-scripts ifcfg file.
It has a bunch of IPADDR settings, for the public IPs.
"nmcli connection show" shows the connection just fine. "ipv4.addresses" lists the IP addresses that get fished out of the ifcfg file, for example. There's nothing in /etc/NetworkManager/system-connections so I take that NetworkManager is reading the initscripts directly.
I need to change these IP addresses. What's the least painful way to do that?
Just edit the ifcfg file, and restart Network Manager?
Attempt to update them via nmcli (I have to work out the syntax)? Will that work, and update the ifcfg files?
On 2021-09-17 5:48 p.m., Sam Varshavchik wrote:
My external network connection was set up before the days of NetworkManager, configured in a /etc/sysconfig/network-scripts ifcfg file.
It has a bunch of IPADDR settings, for the public IPs.
"nmcli connection show" shows the connection just fine. "ipv4.addresses" lists the IP addresses that get fished out of the ifcfg file, for example. There's nothing in /etc/NetworkManager/system-connections so I take that NetworkManager is reading the initscripts directly.
I need to change these IP addresses. What's the least painful way to do that?
Just edit the ifcfg file, and restart Network Manager?
Attempt to update them via nmcli (I have to work out the syntax)? Will that work, and update the ifcfg files?
If you're using Gnome, you should be able to edit it in the settings. If not, then the easiest method is probably to directly edit the file. Otherwise, you could try using nm-connection-editor which is quite nice.
Samuel Sieb writes:
On 2021-09-17 5:48 p.m., Sam Varshavchik wrote:
I need to change these IP addresses. What's the least painful way to do that?
Just edit the ifcfg file, and restart Network Manager?
Attempt to update them via nmcli (I have to work out the syntax)? Will that work, and update the ifcfg files?
If you're using Gnome, you should be able to edit it in the settings. If not, then the easiest method is probably to directly edit the file. Otherwise, you could try using nm-connection-editor which is quite nice.
I did end up using nm-connection-editor.
It ended up updating the legacy initscripts ifcfg files, on its own.
On 2021-09-18 7:11 a.m., Sam Varshavchik wrote:
Samuel Sieb writes:
On 2021-09-17 5:48 p.m., Sam Varshavchik wrote:
I need to change these IP addresses. What's the least painful way to do that?
Just edit the ifcfg file, and restart Network Manager?
Attempt to update them via nmcli (I have to work out the syntax)? Will that work, and update the ifcfg files?
If you're using Gnome, you should be able to edit it in the settings. If not, then the easiest method is probably to directly edit the file. Otherwise, you could try using nm-connection-editor which is quite nice.
I did end up using nm-connection-editor.
It ended up updating the legacy initscripts ifcfg files, on its own.
That's how NetworkManager works. Any changes get made to wherever the connection is configured.