How to Resolve “/etc/sysconfig/network – No Such File or Directory” in Linux

Sometimes, you did install Linux on a virtual machine that the virtual machine has no NIC, when installation has been completed, you will face with the below error during "ifdown", "ifup" or restarting network services

/etc/sysconfig/network – Missing in Linux!

Sometimes, you did install Linux on a virtual machine that the virtual machine has no NIC, when installation has been completed, you will face with the below error during “ifdown”, “ifup” or restarting network services:

/etc/sysconfig/network: No such file or directory

This is the usual error, because operating system doesn’t detect any NIC during installation and “Networking” feature is disabled on server.

What’s Solution!

The networking should be enabled manually, run the below command on terminal:

# echo "NETWORKING=yes" >/etc/sysconfig/network

Rebooting machine is recommended after that change.

Further Reading

How To Disable HBA Port on Linux

Guest Operating System Upgrade or New Virtual Machine?

External Links

Davoud Teimouri
Davoud Teimouri

Professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022/2023/2024/2025, vExpert NSX, vExpert PRO, vExpert Security, vExpert EUC, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

4 Comments

  1. # echo “NETWORKING=yes” >/etc/sysconfig/network
    -sh: can’t create /etc/sysconfig/network: nonexistent directory

Leave a Reply

Your email address will not be published. Required fields are marked *