Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Whenever I ping on my personal computer, nothing gets displayed other than a single statement.

Upon stopping execution, I see that several packets were transmitted in the statistics. On top of all this, I'm getting a rather absurd packet loss.

What can I do to make ping react in a sane manner?

I am running Centos 6.5 64bit.

Below is an example output when I try ping google.com:

[root@Virus os]# ping google.com
PING google.com (74.125.230.160) 56(84) bytes of data.
^C
--- google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4274ms

ifconfig -a:

[root@Virus os]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr B4:B5:2F:29:FE:D7  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

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:108 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:9081 (8.8 KiB)  TX bytes:9081 (8.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 84:4B:F5:14:9B:58  
          inet addr:172.20.40.55  Bcast:172.20.255.255  Mask:255.255.0.0
          inet6 addr: fe80::864b:f5ff:fe14:9b58/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56944 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40200 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:55308863 (52.7 MiB)  TX bytes:6291284 (5.9 MiB)

iptables -L:

[root@Virus www]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

netstat -nr:

[root@Virus www]# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
172.20.0.0      0.0.0.0         255.255.0.0     U         0 0          0 wlan0
0.0.0.0         172.20.4.254    0.0.0.0         UG        0 0          0 wlan0
share|improve this question
    
That's standard behaviour when you don't get any ping responses. Does ping localhost produce the same output? –  mtm Jul 10 at 12:57
    
ping localhost works fine. I didnt know it was standard. Is there something I can do to get responses? –  Kis Jul 10 at 12:59
    
Check your network connection, check if you can ping an ip address instead. e.g ping 8.8.8.8 one of googles public dns servers. Also post ifconfig -a –  val0x00ff Jul 10 at 13:06
    
I cant ping an ip either and I have just updated the question with the ifconfig -a –  Kis Jul 10 at 13:12
1  
By the way, your gateway seems to be 172.20.4.254, try to ping it. If it responds, then try to traceroute google.com and see where you are stoping receiving pings (traceroute is a ping tool with times). If you reach the router but you can't get past it, then check the router there must be a rule there not letting you pass through it. –  YoMismo Jul 10 at 15:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.