Yes, that’s what CentOS 7 says. Anyway, lately, I installed CentOS 7 over VMware, and installation were quite smooth. Immediate after installation, I tried to browse some web, and it was failing. While doing basic troubleshooting, I noticed there were no IP when I did ifconfig Are you in the same situation as I was? In this article, I will talk about how to fix if you don’t get the Internet on VMware with CentOS 7. That leads me to think either network adaptor is not enabled or failed to obtain a DHCP IP address.
Solution
Access terminal/console Become a root if you are not already Execute dhclient –v command You will notice it will bound IP address as shown below
Boom, that’s all, you should have the Internet now. You will also notice IP when you do ifconfig
Add this in auto-startup
You might be interested in putting this in auto-startup, so you don’t have to do this every time you start the CentOS VM. This is how you can put the script in auto-startup, so it starts automatically after VM is rebooted.
Go to /etc/init.d Create a file with following, I have kept the name as “net-autostart“
Save the file Change the file permission as executable
Add this script for auto-start using chkconfig command
Restart VM to test
I hope this helps. If interested in mastering Linux Administration skills then check out this course.