Unable to access internet on Vmware

Edit the file /etc/network/interfaces and add these lines:

# The primary network interface
auto ens33
iface ens33 inet dhcp

ens33 is the logical name of the NIC and may be different for other operating systems.

Don't change anything of the loopback interface.

Save the file and run sudo ifup ens33.


I had the same issue. I have removed all the network cards and readded them - not sure if this was a requirement but after I did that I decided to reinstall the VM Player. Then downloaded VMPlayer and ran the installer. I chose Repair then restarted the host machine.