Home:ALL Converter>Can not ping or access guest from host - vmware

Can not ping or access guest from host - vmware

Ask Time:2014-08-18T17:45:51         Author:dav

Json Formatter

I have win7 OS with vmware workstation with debian 7. This is the ipconfig of host(win 7)

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 10.47.235.94
   Subnet Mask . . . . . . . . . . . : 255.255.255.255
   Default Gateway . . . . . . . . . : 0.0.0.0

I am connected by NAT (I could not manage to do bridged connection). ifconfig of the guest is this

debian 7 ifconfig - vmware

But pinging guest from host by ip 192.168.252.138 gives Request timed out. If I enable some network adapter from win7 network conenctions, say VMnet1, accordingly these lines appear in win7 ipconfig

Ethernet adapter VMware Network Adapter VMnet1:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::4561:18cc:8abc:93a2%15
   IPv4 Address. . . . . . . . . . . : 192.168.71.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

and I can ping host from guest by 192.168.71.1, but again can not ping guest from host(this is what I need).

I do not have any firewall rules in guest: /sbin/iptables -L shows no rules.

I am able to create custom virtual network and connect guest to it setting static ip address, in that case I can connect from host to guest, but the problem is I can not connect to the internet from guest.

thanks

Author:dav,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25360405/can-not-ping-or-access-guest-from-host-vmware
dav :

instead of vmnet1 I had to enable VMware Network Adapter VMnet8, doing so it added the following to the host's config\n\nEthernet adapter VMware Network Adapter VMnet8:\n\n Connection-specific DNS Suffix . :\n Link-local IPv6 Address . . . . . : fe80::28e4:a65d:b520:ad92%16\n IPv4 Address. . . . . . . . . . . : 192.168.252.1\n Subnet Mask . . . . . . . . . . . : 255.255.255.0\n Default Gateway . . . . . . . . . :\n\n\nafter this I was able to ping the guest from host. The connection type between host and guest is nat.\n\nupdate\n\nif it is already enabled, disabling and re-enabling might help (thanks Paul G)",
2014-08-18T11:31:56
Xenocide :

Just leaving this here should anyone run into this issue and not find a fix.\n\nIts kind of obvious, but also make sure your guest, if running windows, is actually discoverable.\n\nType \"HomeGroup\" in start, and either change network location to private or go to \"Change advanced sharing settings\" and set permissions accordingly for public. \n\nIt is one of those small details that can be easy to overlook... ",
2016-12-20T13:47:35
yy