How To Fix Ifconfig Command Not Found on CentOS 7

Fix Ifconfig Command Not Found on CentOS 7

In this tutorial we will show you how to fix ifconfig command not found on CentOS 7. A few days back I minimal installed CentOS 7 (x86_64) on my vps system. On and before CentOS 6.x releases, I was habitual to use the command called ifconfig. On CentOS 6.x and before, ifconfig command by default used to shipped. Whereas in minimal installed CentOS, I have not found ifconfig command. This was due to “net-tools” not installed by default. Install “net-tools” will solve the problem.

For those of you who didn’t know, “ifconfig” command is used to configure a network interfaces in GNU/Linux systems. It displays the details of a network interface card like IP address, MAC Address, and the status of a network interface card etc.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Ifconfig on a CentOS 7 server.

Fix Ifconfig Command Not Found on CentOS 7

In case you do not want to install additional package and simply to see your ip address you can use ip addr command:

To get the ifconfig command into our system , run the below given command:

and then you can use it