Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 PCs can ping each other, PC1 can ping gw, PC2 cant (solvd)
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
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Mon Nov 13, 2006 3:14 pm    Post subject: 2 PCs can ping each other, PC1 can ping gw, PC2 cant (solvd) Reply with quote

Weirdest thing ever... This is the picture: 2 Gentoo amd64 boxes, each one a NIC. All works fine locally. Samba does as well, for the winxp partition in that box. PC1 is 86.111.88.12 and PC2 is 86.111.88.13. Gateway is 86.111.88.1.

PC1 and PC2 are connected to a hub, and the hub goes directly to my gateway. All is rj45, no wireless, nothing fancy. PC1 can ping PC2, all is fine so far. PC1 can also ping gateway, ok. PC2 can ping PC1, and that is really great :P

But PC2 can't ping my gateway address (and as such, the local net works, the internet, doesn't).

Wince there is a ping between pc1 and pc2, these cables should be fine, and nicks should also be fine. "ping 86.111.88.1" does not work in any of windows xp, gentoo or knoppix, in that box. It can, however, as I previously commented, ping PC1 without any problem.

Code:

   PC1           PC2
    |             |
    |             |       # PC1 and PC2 can ping each other
    |             |
    ------   ------
          |  |
          HUB
           |
           |         # PC1 can ping here, PC2 cant, cool, isn't it? :P
           |
        Gateway



And no, the hub connectors are not damaged or anything (i will not use the argument that it is new, though indeed it is). I am sure cause if I just change the cables and plug PC1 where PC2 is, and vice-versa, I get exactly the same results.

And even more!

This is my config in the PC1, the one that can ping everything :P

/etc/conf.d/net
Code:

# For static IP using netmask notation
config_eth0=( "86.111.88.12 netmask 255.255.255.0" )
routes_eth0=( "default gw 86.111.88.1" )


If I change the ip to .86.111.88.13 (the pc2 original ip) and change the pc2 ip to 86.111.88.12 (the original ip for pc1) the result is the same. Still, the pc1 with the new ip can ping everything, while pc2 can only ping pc1. So, I think we can safelly discard any ip filtering issue in my gateway.

Seriously, my common sense suggests me that it is not an ip filtering issue, it is not a hub issue since swapping the cables does nothing different. It isn't either an OS specify issue, since two linuxes and winxp do the same all of them. The remaining is the physical level, but the cables seem ok, the leds are ok, the two computers can communincate, transfers files in both directions. The cable from the hub to the gateway can't be either, since one of the computers can use that conection to reach out without any problem. The only thing that remains is the cable from pc2 to the hub. But since the intranet works ok and pc2 can transfer files to and from pc1...

This is insane. I thank any idea in advance.

Cheers. :)

EDIT: Just checked, tested the cable for pc2-hub on of pc1-hub and it works, so, that is not the problem.


Last edited by i92guboj on Tue Nov 14, 2006 4:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
H4rck
n00b
n00b


Joined: 29 Jul 2004
Posts: 20
Location: Brussels

PostPosted: Mon Nov 13, 2006 5:31 pm    Post subject: Reply with quote

Is there any MAC filter on the gateway that would be active (PC1 would then be authorized at the physical level, whatever its IP, while PC2 not)?

If not, then .... good luck! :wink:
_________________
There are only 10 types of people in the world:
Those who understand binary,
and those who don't...
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Mon Nov 13, 2006 5:48 pm    Post subject: Reply with quote

I tried several nics, so that should not be the problem. Still I will look a bit more into that, since I am really out of ideas. I will report back if I find anything...

Thank you. :)
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Nov 14, 2006 4:12 pm    Post subject: Reply with quote

I think the problem is mac related. The thing that confussed me is that the cable modem that conects with my gateway seem to do some kind of reset when disconnected. That is why all physicall devices seemed to work fine in this machine, cause I turned of the whole thing each time I changed nics. It might be the modem itself who grab the macs and remembers them while the session is up, and from that momment until reset it only forwards traffic to the outer side from that first registered mac. I am not really sure. But it is the only explanation I can think of.

The physical media is all fine. And the final solution -more like a workaround- has been to just add one more nic in one of the boxes, and then use NAT to setup the rest of them (one now for testing, but they will be more) so they can reach outside thru the one directly connected to the gateway.

Of course, this is just a test, and as I need this box for other purposes, I think that I will just setup any old pentium to do the nat, firewalling, dhcp and dns stuff. :P
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