View previous topic :: View next topic |
Author |
Message |
qdii Tux's lil' helper

Joined: 19 Sep 2009 Posts: 106 Location: Madrid
|
Posted: Sun Nov 27, 2011 1:56 am Post subject: Can’t ping a given ip address, ping hangs |
|
|
Hey,
I have 2 computers which are both connected to the same wifi router. They can both ping websites such as www.wikipedia.org or www.google.com, and can ping each other too, but one of them can ping 188.165.195.37, and the other one can’t. When I say it can’t ping, I mean ping hangs till I kill it.
Both computers have the same route table: http://paste.pocoo.org/show/513378/
I am getting more and more confused
Last edited by qdii on Sun Nov 27, 2011 2:29 pm; edited 1 time in total |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23121
|
Posted: Sun Nov 27, 2011 2:03 am Post subject: |
|
|
What if you use ping -c4 188.165.195.37? |
|
Back to top |
|
 |
qdii Tux's lil' helper

Joined: 19 Sep 2009 Posts: 106 Location: Madrid
|
Posted: Sun Nov 27, 2011 2:05 am Post subject: |
|
|
So what I did was running strace ping on the computer that cannot ping, I ended up with that:
http://paste.pocoo.org/show/513387
Code: |
recvmsg(3, 0x7fffbb30c670, 0) = -1 EAGAIN (Resource temporarily unavailable)
|
That line is very surprising, I wonder how that could happen…
EDIT: dug further, the documentation here states that:
Quote: | [EAGAIN] or [EWOULDBLOCK]
The socket's file descriptor is marked O_NONBLOCK and no data is waiting to be received; or MSG_OOB is set and no out-of-band data is available and either the socket's file descriptor is marked O_NONBLOCK or the socket does not support blocking to await out-of-band data. |
That’s not our case since the third flag is 0, and O_NONBLOCK is defined to be 0x4, 0x80, 0x4000 or 0x200004 depending on the architecture. MSG_OOB is defined to 1. So this looks pretty weird now.
Last edited by qdii on Sun Nov 27, 2011 12:55 pm; edited 1 time in total |
|
Back to top |
|
 |
qdii Tux's lil' helper

Joined: 19 Sep 2009 Posts: 106 Location: Madrid
|
Posted: Sun Nov 27, 2011 2:06 am Post subject: |
|
|
Hu: doesn’t get better with -c4 |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23121
|
Posted: Sun Nov 27, 2011 5:19 am Post subject: |
|
|
qdii wrote: | Hu: doesn’t get better with -c4 | You mean that ping never exits, even with -c4? |
|
Back to top |
|
 |
qdii Tux's lil' helper

Joined: 19 Sep 2009 Posts: 106 Location: Madrid
|
Posted: Sun Nov 27, 2011 11:58 am Post subject: |
|
|
Sorry, yes it exits with "100% packet loss" when I set -c4 |
|
Back to top |
|
 |
qdii Tux's lil' helper

Joined: 19 Sep 2009 Posts: 106 Location: Madrid
|
Posted: Sun Nov 27, 2011 12:18 pm Post subject: |
|
|
I’ve made a little step forward: the same problem strikes up when I connect through an ethernet cable. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23121
|
Posted: Sun Nov 27, 2011 6:06 pm Post subject: |
|
|
What is the output of traceroute -I -n 188.165.195.37, as run by both the successful and failed systems? |
|
Back to top |
|
 |
qdii Tux's lil' helper

Joined: 19 Sep 2009 Posts: 106 Location: Madrid
|
Posted: Mon Nov 28, 2011 9:59 am Post subject: |
|
|
Hey,
thanks for your help. Everything eventually turned out fine after I reseted the router settings.
No idea what was going wrong |
|
Back to top |
|
 |
|