View previous topic :: View next topic |
Author |
Message |
mariourk l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/17564073564d54f55cd1671.gif)
Joined: 11 Jul 2003 Posts: 807 Location: Urk, Netherlands
|
Posted: Tue Sep 16, 2008 12:38 pm Post subject: Unable to ping second ADSL modem [SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
PaulBredbury Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/15669254994381f44a81f83.jpg)
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Sep 16, 2008 12:43 pm Post subject: |
|
|
Little check:
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mariourk l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/17564073564d54f55cd1671.gif)
Joined: 11 Jul 2003 Posts: 807 Location: Urk, Netherlands
|
Posted: Tue Sep 16, 2008 2:11 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mariourk l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/17564073564d54f55cd1671.gif)
Joined: 11 Jul 2003 Posts: 807 Location: Urk, Netherlands
|
Posted: Wed Sep 17, 2008 9:09 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|