CentOS 7 – Ifconfig Command Not Found

KB ID 0001048 

Problem

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

Solution

To Install Ifconfig

1. Run either of the following;

yum provides ifconfig

or

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

NA

 

Author: Migrated

Share This Post On