ifconfig: command not found – CentOS 7 minimal

-bash: ifconfig: command not found

ifconfig is not longer bundled in the minimal image of CentOS 7. You could just use the alternative ip addr which will give you the same info ifconfig gives, but if you’re set in your ways like I am, you will want ifconfig back.

You’ll need to install the net-tools package to get ifconfig back:

yum install net-tools

Issue ifconfig at shell and you should see the output you’re used to.

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.