ifconfig not exist in CentOS 7 Minimal Install

Perhaps one of the first things that you will notice right after your first login to the Centos 7 minimal installation is about the ifconfig command. This utility has been deprecated in Centos 7 and you have two option first there is alternative option to get and manipulate your IP address using the ip command:

ip addr sh

but if you still want to use ifconfig, as second choice you can use the “yum provides” command to figure out what packages provide certain commands or files you are used to using like below:

yum provides ifconfig

So in order to use the ifconfig command you just need to install the net-tools.

yum -y install net-tools

Leave a Reply

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