CentOS 7 – Ifconfig Command Not Found

KB ID 0001048 


Although not my strongest subject, I know enough to get by in Linux, so I was a little put out when I tried to run ifconfig, only to be told it could not be found. On an ‘out of the box’ install you are supposed to use ‘ip addr’ instead.

centos 7 ifconfig


To Install Ifconfig

1. Run either of the following;

yum provides ifconfig


yum whatprovides ifconfig

And you should see a net-tools package.

yum provides

2. Install the package.

yum install net-tools

yum provides

3. Now ifconfig should work again.

yum provides


Related Articles, References, Credits, or External Links



Author: Migrated

Share This Post On