CentOS: ifconfig command not found

In the out-of-box CentOS installations ifconfig is absent. It is easy to fix, just install the net-tools package.

ifconfig: command not found

Install ifconfig stuff

sudo yum install net-tools