Rocky Linux 8: ifup fails with “Error: unknown connection ‘/etc/sysconfig/network-scripts/ifcfg-ensX'”

by ,

We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

Operating System and Software

  • Rocky Linux 8


  • 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`

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: