Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can’t ping a given ip address, ping hangs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
qdii
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2009
Posts: 106
Location: Madrid

PostPosted: Sun Nov 27, 2011 1:56 am    Post subject: Can’t ping a given ip address, ping hangs Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23121

PostPosted: Sun Nov 27, 2011 2:03 am    Post subject: Reply with quote

What if you use ping -c4 188.165.195.37?
Back to top
View user's profile Send private message
qdii
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2009
Posts: 106
Location: Madrid

PostPosted: Sun Nov 27, 2011 2:05 am    Post subject: Reply with quote

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
View user's profile Send private message
qdii
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2009
Posts: 106
Location: Madrid

PostPosted: Sun Nov 27, 2011 2:06 am    Post subject: Reply with quote

Hu: doesn’t get better with -c4
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23121

PostPosted: Sun Nov 27, 2011 5:19 am    Post subject: Reply with quote

qdii wrote:
Hu: doesn’t get better with -c4
You mean that ping never exits, even with -c4?
Back to top
View user's profile Send private message
qdii
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2009
Posts: 106
Location: Madrid

PostPosted: Sun Nov 27, 2011 11:58 am    Post subject: Reply with quote

Sorry, yes it exits with "100% packet loss" when I set -c4
Back to top
View user's profile Send private message
qdii
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2009
Posts: 106
Location: Madrid

PostPosted: Sun Nov 27, 2011 12:18 pm    Post subject: Reply with quote

I’ve made a little step forward: the same problem strikes up when I connect through an ethernet cable.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23121

PostPosted: Sun Nov 27, 2011 6:06 pm    Post subject: Reply with quote

What is the output of traceroute -I -n 188.165.195.37, as run by both the successful and failed systems?
Back to top
View user's profile Send private message
qdii
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2009
Posts: 106
Location: Madrid

PostPosted: Mon Nov 28, 2011 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum