Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to ping second ADSL modem [SOLVED]
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
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Tue Sep 16, 2008 12:38 pm    Post subject: Unable to ping second ADSL modem [SOLVED] Reply with quote

I have a second ADSL-modem hooked on my Gentoo-router. Somehow I'm unable to ping this modem, let alone accessing the modem.
My fist modem is connected to eth1. Eth1 has 10.0.0.150 as IP, the modem connected to it has 10.0.0.2 as IP. This works fine.
The second modem is hooked to eth2. Eth2 has 10.1.0.150 as IP, the modem connected to it has 10.1.0.2 as IP.

When I logon to my Gentoo-router (SSH) and ping 10.1.0.2, I get nothing. Both are in the same IP-range.

When I connect the modem to my laptop, I can access the modem, ping it and go on the internet with it.

I can't see why it doesn't work from my Gentoo-router.
_________________
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.


Last edited by mariourk on Wed Sep 17, 2008 9:09 am; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Sep 16, 2008 12:43 pm    Post subject: Reply with quote

Little check:
Code:
route -n
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Tue Sep 16, 2008 2:11 pm    Post subject: Reply with quote

That gives
Code:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth3
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
10.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth2
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.0.2        0.0.0.0         UG    0      0        0 eth1

10.0.0.2 being the default gateway is correct. The strange thing is that I can ping 192.168.3.x machines (connected to eth3) without any problem. The same goes with the machines connected to eth0 and eth1. It is only eth2 that gives trouble.

I also doubt if this is a routing problem. I'm not trying to route anything (yet) from the router itself it shouldn't be a problem to ping the modem. Right?
_________________
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Wed Sep 17, 2008 9:09 am    Post subject: Reply with quote

I had still a rule in my firewall with the old configuration of that modem. After changing that to the new IP it worked fine.
Code:

-A POSTROUTING -o eth2 -j SNAT --to-source old-ip-address

_________________
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
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