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

/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

Professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022/2023, 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 Responses

  1. user says:

    can’t create /etc/sysconfig/network: nonexistent directory

  2. user says:

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

  3. Let me know, what’s your Linux distribution and its version as well.

  4. SamSmooth says:

    No need to restart the machine,
    just run

    service network restart

Leave a Reply

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