Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not ping or access guest from host - vmware

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

like image 796
dav Avatar asked Aug 18 '14 09:08

dav


People also ask

Can T ping VM from another VM?

If both the machines are in the same Virtual Network, then just turn off Windows Firewall and they will be able to ping each other. Other way is to just allow all incoming ICMP traffic in Windows Firewall with Advanced Settings. (ping request or create an exception by just enabling ping (ICMP).

How do I fix NAT network issues in VMware?

Shut down your virtual machine. In Workstation, go to VM > Settings > Network Adapter. Ensure that the network adapter is connected (that is, the Connected and Connect at power on options are selected). Ensure that the network adapter is configured for NAT or Bridged, and not Host Only.

Can ping ESXI host but not VM?

If you can ping the ESXI host but not the VMs, then it sounds like maybe you're just connected to the management network. Check your virtual switch config in ESXI. Do your VMs have a path to a physical NIC that is connected to your physical network?


1 Answers

instead of vmnet1 I had to enable VMware Network Adapter VMnet8, doing so it added the following to the host's config

Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::28e4:a65d:b520:ad92%16
   IPv4 Address. . . . . . . . . . . : 192.168.252.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

after this I was able to ping the guest from host. The connection type between host and guest is nat.

update

if it is already enabled, disabling and re-enabling might help (thanks Paul G)

like image 112
dav Avatar answered Oct 26 '22 17:10

dav