Open Source Support Forum

Please or Register to create posts and topics.

How to restore ifconfig command in Centos 7

You type ifconfig in Centos 7 and it returns Command Not Found.
No worry, your CentOS 7 is not broken, its a minimal installation
and ifconfig command doesn't come with CentOS 7 minimal install.

To bring back ifconfig command, follow the quick steps below;

1. Use yum provides ifconfig command to look for what package provide ifconfig command

2. The returned result show net-tools provide ifconfig command, that is what we need to install!
So we run yum install net-tools,to install it.

3. Done with the installation, next run ifconfig command and confirm command not found is not happening again