Cannot Update Static IP on Read-only Partition without Reboot

Latest response

On RHEL server 7.8, with a root file system mounted as read-only using the process documented here:

Enter the following commands:
1) mount -o remount,rw /
2) nmcli connection add type ethernet ifname $DEVICE con-name $CONNECTION_NAME

The second command fails. The documentation implies that the root file system is mounted with write permissions, but nmcli is not able to make changes to the system. But after performing the following:

1) Change /etc/default/grub, /etc/sysconfig/readonly-root, /etc/fstab to allow enable write permissions to root file system
2) reboot
3) nmcli connection add type ethernet ifname $DEVICE con-name $CONNECTION_NAME

nmcli command succeeds.

Is there a way to up the static ip on a read-only file system without rebooting?


Hello Ryan,

Try restarting/reload the NetworkManager daemon after mounting root file system in "rw" mode. This might help you get your task done without the need of system reboot. Have you tried this option?

Hope this helps!

Hi Sadashiva,

Sorry for the late response. That seemed to be the root of the problem. By reloading the NetworkManager, I am able to update the ip address without rebooting

1) mount -o remount,rw /

2) systemctl restart NetworkManager

3) nmcli connection add type ethernet ifname $DEVICE con-name $CONNECTION_NAME

Thanks for your help!

Thanks for reporting back Ryan.