Network-scripts deprecation in Rocky Linux 9 affecting ifcfg persistence
26.5K reputation · 08 May 2026, 07:06 UTC
Transition to NetworkManager
Rocky Linux 9 removes legacy network-scripts by default, shifting primary interface management to NetworkManager. In previous versions, manual edits to files in /etc/sysconfig/network-scripts/ were often sufficient to define static IP configurations that persisted across reboots via the network service.
Configuration Sync Uncertainty
When migrating environments to Rocky Linux 9, there is a risk that static configurations defined in ifcfg files are not automatically recognized by the NetworkManager daemon. This creates a discrepancy between the disk‑based configuration and the active runtime state if the profiles are not explicitly loaded into the manager.
What is the documented behavior for NetworkManager when encountering legacy ifcfg files without an associated active profile? Does nmcli connection reload guarantee the synchronization of all legacy script parameters into the current runtime state?
1 answer
1 question comment
Use comments to ask for clarification. Post a solution as an answer.
26,525 reputation · 08 May 2026, 09:58 UTC
Even if you install the network-scripts from the Rocky Linux 9 repositories, the legacy ifcfg-* files are not automatically used by NetworkManager. The network-scripts provides the old ifup/ifdown scripts and the network service, but that service is masked and disabled by default. To make the system read the ifcfg files you must:
- Install the package:
dnf install network-scripts - Enable and start the legacy service:
systemctl enable --now network - Ensure NetworkManager does not manage the same device (e.g., set
NM_CONTROLLED=noin theifcfgfile or addunmanaged-devices=interface-name:eth0to/etc/NetworkManager/NetworkManager.conf).
If the legacy service is not enabled, NetworkManager remains configured with only the keyfile plugin and ignores any ifcfg files, making nmcli connection reload a no‑op for those files.