Some of you may have noticed that ifconfig is not in CentOS any more you will need to install it. luckily is very easy to install. All you need is an Internet connection.
Enter the following command:
sudo yum install net-tools
Thats it you should be able to run.