On Sat, 15 Nov 2003, Santanu Chatterjee <(E-Mail Removed)> wrote:
> On Fri, 14 Nov 2003 02:50:45 +0000, David Efflandt wrote:
>
>> On Thu, 13 Nov 2003, Santanu Chatterjee <(E-Mail Removed)> wrote:
>>> We have a linux (Mandrake 9.1) router having network 192.168.10.0/24 at eth0
>>> and 210.212.7.0/24 at eth1.
>>>
>>> Pinging from a host of IP 210.212.7.4 (connected by hub with eth1) to
>>> 192.168.10.1 (eth0 of the Mandrake Linux router) is possible but
>>> we are unable to ping any host of the network 192.168.10.0
>>
>> Does Mdk router have ip_forward enabled
>> (does 'cat /proc/sys/net/ipv4/ip_forward' return 1)?
>
> Yes, _that_ was the problem. Now it works, but still routing does
> not work (please see my reply to Anthony Ewell).
Then it could have something to do with iptables rules. If you were
masquerading 192.168.10.0/24 (so it could access internet) then you would
have had to punch a forward hole through it between 192.168.10.0/24
to/from 210.212.7.0/24 to ACCEPT before any masq rule.
>> Does 210.212.7.4 have a route for 192.168.10.0/24 network using Mdk router
>> eth1 IP for gateway?
>
> Well, I did give that route and it appeared in the output shown
> by 'route -n' command (I can't exactly reproduce the line, as the
> setup is already working using the routing services of a cicso router
> and I won't be allowed to touch that setup again (until it goes wrong))
>
> Still, could you please state the exact command line to use for the
> route command for doing that. Maybe I can recall if I made any mistake
> in that. IIRC, the line I used was, most probably:
> # route add 192.168.10.0 gw 210.212.7.3
> (where 212.212.7.3 is the machine with its other ethernet interface
> being 192.168.10.1)
See 'man route'. The correct way to route to a network (assuming default
255.255.255.0 netmask for 192.168.x.x network) via a gateway:
route add -net 192.168.10.0 gw 210.212.7.3
(possibly with 'dev eth0' or whatever interface it goes out of).
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/