vmware: unable to ping using NAT IP address, but can ping physical IP

user534498 picture user534498 · Apr 22, 2016 · Viewed 20.5k times · Source

I've been searching around and found no similar issues have been asked.

My desktop (windows 7) is in LAN, has IP (192.168.3.121).

I installed vmware (windows 7), using NAT connection (172.168.174.128). The guest is able to access internet without problem.

In guest, if I "ping 192.168.3.121", this will be ok. If I "ping 192.168.3.xxx", will also be ok. If I "ping 192.168.174.2" (DNS), this will be ok.

If I "ping 192.168.174.1", can't ping.

Note my host Vmnet8's ip is indeed 192.168.174.1. Ping from host also doesn't work.

From host: "ping 192.168.174.128" (guest IP), does not work "ping 192.168.174.2", does not work

Both host/guest windows are installed without any other "security/defender/firewall" related softwares.

Anywhere can go wrong?

Thanks.

Answer

edhurtig picture edhurtig · Apr 22, 2016

If you configured your vmware VM to run in a virtualized NAT network, then you will not be able to access/ping your VM from the Host, or anywhere else for that matter, without configuring port forwarding for that virtual NAT network.

If you would like to be able to access your VM from your host you can either:

A) Change the mode of the network adapter for the VM to a bridged adapter. This will make the VM act as if it is just another computer on the same network your Desktop is and will be accessible at an IP such as 192.168.3.122

or

B) Add a Host-Only network adapter to the VM. This second NIC will be connected to a network that has no internet access, but is connected to the host and any other VMs on the same host-only network

Also, check the firewall settings to allow inbound ICMP inside the VM.