‘Ifconfig’ Command Not Found In CentOS 7 Minimal Installation – A Quick Tip To Fix It

As we all 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. But, this command is obsolete, and is not found in the minimal versions of RHEL 7 and its clones like CentOS 7, Oracle Linux 7, and Scientific Linux 7.

How do I find IP and other details of a network interface In CentOS Minimal server?

CentOS 7 minimal systems, use the commands “ip addr” and “ip link” to find the details of a network interface card. To know the statistics use “ip -s link”.

To view the details of the network interface cards, enter the following commands:

Sample output:

To view the statistics of your network interfaces, enter the command:

Sample output:


Sample output:

How do I enable and use “ifconfig” Command in CentOS 7 minimal servers?

If you don’t know where to find the ifconfig command, follow the simple steps provided below. First let us find out which packages will provide ifconfig command. To do that , enter the following command:

Sample Output:

Or you can use the following command too.

Here, “provides” or “whatprovides” switches are used to find out which package provides some feature or file.

As you see in the above output, the net-tools package provides the ifconfig command. So, let us install net-tools package to use ifconfig command.

Now, you’ll be able to use the command ifconfig as usual.

Sample output:



Leave a Reply

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