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

View Comments (4)