Click to See Complete Forum and Search --> : how to route between 2 private class C networks?


jscott21
03-20-2000, 04:31 PM
Hello,

I have 2 private networks setup. One is using 192.168.1.0 and another is using 192.168.10.0. Is it possible to route between these 2 private LAN's?

I've tried it with IP forwarding turned on using Caldera OpenLinux 2.3. However, I can't ping from one lan to the other. (I can if I enable IP Masquerading, but I don't really want to do that)

Any help would be appreciated.

thanks

Jeff

joeybach
12-20-2000, 12:24 AM
To route this all you should have to do is issue the command "route add -net [the destination network address] netmask [the subnet mask] [the interface]" for each network. then you should be able to pass traffic. If it does you can add those same lines the /etc/rc.d/rc.local so that it routes after the system reboots.
[do all this as root]

Route -n will show your routing table.
If you have iproute2 installed then there are a bunch of other commands. But this will work just fine.

joeybach
12-20-2000, 12:25 AM
To route this all you should have to do is issue the command "route add -net [the destination network address] netmask [the subnet mask] [the interface]" for each network. then you should be able to pass traffic. If it does you can add those same lines the /etc/rc.d/rc.local so that it routes after the system reboots.
[do all this as root]

Route -n will show your routing table.
If you have iproute2 installed then there are a bunch of other commands. But this will work just fine.