Unable to ping Linux guest from win7 host


 
Thread Tools Search this Thread
Operating Systems Linux Unable to ping Linux guest from win7 host
# 1  
Old 06-20-2012
Unable to ping Linux guest from win7 host

Hi,

I am using win7 on my PC and installed VMware on it on which i am running linux

I am unable to ping my linux guest from my win machine,

but i can ping my windows host from linux guest :

Below is my system configuration

Linux

Code:
root@localhost ~]# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:0C:29:15:D6:6E  
          inet addr:192.168.29.128  Bcast:192.168.29.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe15:d66e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1865 (1.8 KiB)  TX bytes:15184 (14.8 KiB)
          Interrupt:67 Base address:0x2024 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2744 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2744 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6332808 (6.0 MiB)  TX bytes:6332808 (6.0 MiB)

[root@localhost ~]# 
[root@localhost ~]#


PING from Linux to WIN

Code:
[root@localhost ~]# ping 192.168.4.1
PING 192.168.4.1 (192.168.4.1) 56(84) bytes of data.
64 bytes from 192.168.4.1: icmp_seq=1 ttl=128 time=15.6 ms
64 bytes from 192.168.4.1: icmp_seq=2 ttl=128 time=2.83 ms
64 bytes from 192.168.4.1: icmp_seq=3 ttl=128 time=2.57 ms

--- 192.168.4.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2338ms
rtt min/avg/max/mdev = 2.570/7.031/15.693/6.126 ms
[root@localhost ~]# ping 192.168.4.156
PING 192.168.4.156 (192.168.4.156) 56(84) bytes of data.
64 bytes from 192.168.4.156: icmp_seq=1 ttl=128 time=0.915 ms
64 bytes from 192.168.4.156: icmp_seq=2 ttl=128 time=1.08 ms

--- 192.168.4.156 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1179ms
rtt min/avg/max/mdev = 0.915/1.000/1.086/0.091 ms
[root@localhost ~]#



VMware settings :


Code:
vmnet0 bridged
vmnet1 : Host-only  subnet :192.168.244.0   
vmnet8   : NAT      subnet :192.168.29.0


Windows :



Code:
C:\Users\hp>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::3086:a7d1:4346:a290%11
   IPv4 Address. . . . . . . . . . . : 192.168.4.156
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.4.1







C:\Users\hp>netstat -rn
===========================================================================
Interface List
 15...16 de 2b 5a a6 61 ......Microsoft Virtual WiFi Miniport Adapter
 13...74 de 2b 5a f0 c1 ......Bluetooth Device (Personal Area Network)
 11...74 de 2b 5a a6 61 ......Atheros AR9285 802.11b/g/n WiFi Adapter
  1...........................Software Loopback Interface 1
 26...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 27...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 14...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
 16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #7
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.4.1    192.168.4.156     26
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.4.0    255.255.255.0         On-link     192.168.4.156    281
    192.168.4.156  255.255.255.255         On-link     192.168.4.156    281
    192.168.4.255  255.255.255.255         On-link     192.168.4.156    281
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link     192.168.4.156    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link     192.168.4.156    281
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0      192.168.4.1       1
          0.0.0.0          0.0.0.0      192.168.4.1       1
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
 11    281 fe80::/64                On-link
 11    281 fe80::3086:a7d1:4346:a290/128
                                    On-link
  1    306 ff00::/8                 On-link
 11    281 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

C:\Users\hp>



PING from WIN to LINUX

Code:
C:\Users\hp>
C:\Users\hp>
C:\Users\hp>ping 192.168.29.128

Pinging 192.168.29.128 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.29.128:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Users\hp>






please help

Moderator's Comments:
Mod Comment Code tags for code, please.

Last edited by Corona688; 06-20-2012 at 11:20 AM..
# 2  
Old 06-20-2012
are you running a firewall on your linux guest?

Code:
service iptables stop

Code:
/etc/init.d/iptables stop

may be different depending on your distribution
# 3  
Old 06-20-2012
I don't see any way for your hosts to be communicating, Windows has no route to 192.168.29 .
# 4  
Old 06-20-2012
funksen : no there ain`t any firewall running on the linux guest.. I tried your stopping the iptables , but no luck


Corona688 : could you please help me in adding the route to in windows
# 5  
Old 06-20-2012
Where did your server get 192.168.29.128 from? Is that configured statically?

128 is a special address which you shouldn't configure a network adapter to...
# 6  
Old 06-21-2012
The 192.168.29.0/24 network is configured to the vmnet8 network, which hides all machines attached to it behind a NAT. So all connections made from within the VM appear to be coming from your Windows host, and the machines aren't reachable from the outside (including the Windows host). Switch the NIC settings to use the bridged vmnet0 network, and the VM will appear as just another machine in your LAN.
# 7  
Old 06-21-2012
Corona688 : IP allocation has been done by vm DHCP

pludi : vmnet0 is already set to bridged
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Guest LDOMS on same subnet cant ping eachother

Hi all, New to this forum. I have just been reading through a historical thread about some issues with IPMP. Some tips from "Peasant" where very useful. Please see below "Just couple of more hints regarding VM. For VDS, use one VDS - one guest LDOM, don't put everything in primary-vds.... (9 Replies)
Discussion started by: selectstar
9 Replies

2. Proxy Server

Unable to access Samba share with Ubuntu on Win7

I have an issue with my Samba share - I am unable to write to it, edit a file or rename a folder etc within Windows. I am using Windows 7 and Ubuntu 12.04 and this is my Samba config. I can connect to the /sylius directory no problem (no password required), but I cannot save to it. Is... (3 Replies)
Discussion started by: crmpicco
3 Replies

3. UNIX for Dummies Questions & Answers

Qemu Problems: OpenBSD(host) Kali Linux(guest)

As the title suggests I ran into a little problem trying to create a virtual machine of Kali Linux usign Qemu inside OpenBSD. I edited the example Kali Linux gave on their website here to the following for BSD: qemu-system-i386 -hda ./kali.qcow2 -boot d -cdrom ./kali-linux-1.0.5-i386.iso -m... (0 Replies)
Discussion started by: Azrael
0 Replies

4. Solaris

Network issue on multinic. Unable to ping a host from One NIC but other works

Dear, I hope you all will be ok. I have an issue with Solaris box running on x86 Blade. I am unable to ping a node neither traceroute. I am able to do traceroute from oce0:6 port which have IP and subnet of same type which oce0:1 has. details are as follows: Problem: root@rinams02:/#... (3 Replies)
Discussion started by: khaniqshahid
3 Replies

5. IP Networking

ping can not recognize host but host command can

Hi, I have a weird problem. when ever I do ping command like for example ping unix.comI get the following message: # ping unix.com ping: unknown host unix.com but when I use host the computer is able to know the host. # host unix.com unix.com has address 81.17.242.186 unix.com mail is... (2 Replies)
Discussion started by: programAngel
2 Replies

6. Emergency UNIX and Linux Support

Sharing internet from host os to guest os

I have a host os Windows 7 ultimate in place where virtual box is installed. Now in virtual box I have installed solaris 10. There is internet connection present in host windows 7 still I am not able to access internet in solaris 10. Please help to configure solaris so that internet can be... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies

7. Solaris

Unable to ping Solaris VM from Xp host

Hi All, I am using Vmware Workstation 6.0.3 build-80004. Guest OS: Solaris 10 Host OS : Win XP I am getting request time out when i am trying to ping from XP ( cmd line) to Solaris VM - I have assigned IP 192.168.50.5 in Solaris VM ( Hostname: Tower1) and it is in UP status. ... (4 Replies)
Discussion started by: saurabh84g
4 Replies

8. Solaris

unable to ping a host in another domain

Hello I have a server in it.siroe.com I added it.siroe.com in /etc/resolv.conf. I still can't ping the server. any service to restart here? any other file to edit? thx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

9. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies

10. UNIX for Dummies Questions & Answers

Unable to ping host

Hi, dear all, I am rather new to Unix and have this problem where I cant seem to ping from 1 host to another. The scenerio is as follows: - 1 QNX host->Eth->1 SCO host the SCO host is configured with it's IP the QNX host is configured with another IP both in the same domain, ie, 172.20.3.XX... (3 Replies)
Discussion started by: gavon
3 Replies
Login or Register to Ask a Question