Operating System and Software
Problem
- If use
NM_CONTROLLED=no
in ifcfg file, unable to bring up interfaces with ‘ifup’ command.
ifup
commands fails with below error when try to bring up ens3 interface.
# ifup ens3
Error: unknown connection '/etc/sysconfig/network-scripts/ifcfg-ens3'.
How to Fix
- There are two ways to resolve the issue:
- Remove
NM_CONTROLLED=no
option from ifcfg file.
- Install
network-scripts
package to utilize the legacy ifup
command.
Origin of the Problem
- From Rocky Linux 8,
ifup
command is provided by NetworkManager package. Network scripts are deprecated in Rocky Linux 8 and they are no longer provided by default.
# rpm -qf `which ifup`
NetworkManager-1.14.0-5.el8.x86_64