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.

No Internet Connection from VMware with CentOS 7 - 13No Internet Connection from VMware with CentOS 7 - 92No Internet Connection from VMware with CentOS 7 - 9No Internet Connection from VMware with CentOS 7 - 58No Internet Connection from VMware with CentOS 7 - 90No Internet Connection from VMware with CentOS 7 - 74No Internet Connection from VMware with CentOS 7 - 86No Internet Connection from VMware with CentOS 7 - 32No Internet Connection from VMware with CentOS 7 - 97No Internet Connection from VMware with CentOS 7 - 48No Internet Connection from VMware with CentOS 7 - 97No Internet Connection from VMware with CentOS 7 - 16No Internet Connection from VMware with CentOS 7 - 32No Internet Connection from VMware with CentOS 7 - 78No Internet Connection from VMware with CentOS 7 - 58No Internet Connection from VMware with CentOS 7 - 56No Internet Connection from VMware with CentOS 7 - 1No Internet Connection from VMware with CentOS 7 - 24No Internet Connection from VMware with CentOS 7 - 62No Internet Connection from VMware with CentOS 7 - 53No Internet Connection from VMware with CentOS 7 - 19No Internet Connection from VMware with CentOS 7 - 8No Internet Connection from VMware with CentOS 7 - 96