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 7 , 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.

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