Mac – Can’t access to internet with the virtual machine

centosip addressvirtual machinevmware-workstation

I created a virtual machine (Centos) on VMWare workstation. The network adapter is on bridge.

My computer has the following IP address : 10.0.0.5/24 and the gateway is 10.0.0.1,
so my virtual machine has the IP address of 10.0.0.50/24 on eth0 interface.

I have only one road, it's my default gateway 10.0.0.1.
Destination is 0.0.0.0 gateway – 10.0.0.1 and netmask 0.0.0.0.

I can ping my computer but I can't ping the gateway and I don't understand this behavior.
So after that, I can't ping 8.8.8.8 so I don't have any internet access.
I can access my VM from my computer.

Could you please help me to find a solution to access internet? Thanks a lot.

Best Answer

  1. In the main menu of VMWare go to Edit -> Virtual Network Editor. In the listbox choose an entry which has Bridged type (or create a new one). Below in VMnet Information the Bridged option should be selected for that entry. Make sure that in "Bridged to" combobox the correct adapter is selected (should be your physical adapter which is used by the host).

  2. Now go to the Network adapter settings of your specific guest (VM -> Settings -> Network Adapter). In Network connection select "Custom: Specific virtual network option". Then in the combobox select VMnet# you previously set up in Virtual Network Editor.

  3. Reboot you guest OS, see if that helps.

Related Question