Configuring Linux Box as Router

Hello,

I am a graduate student in department of computer science at colorado state university. I am setting up following Topology N/W in which Machine 2 Linux Box has to forward packet between two different subnets,

################# ###################### ###################

Machine 1 ( Solaris Box) ---------------- Machine 2 (Linux Box) -------------------- Machine 3(Solaris Box)

192.168.0.1 10.0.0.1(eth0), 192.168.0.101(eth1) 10.0.0.101

#################### ##################### ####################

Machine 1 and Machine 3 are on different subnet.

from Machine 1 and 3 I can ping both interfaces of Machine 2 Linux Boxes. But I am unable to Ping Machine 3 from Machine 1 and vice versa. I have tried to make my Machine 2 Linux Box as Router, I have made static entries in the kernel routing table as well. But still problem persists. I am not sure if I am missing anything in the configuration of Linux Box as a router.

Can anyone please tell me where I am making mistake.

Thanks

Tarun

You need to have IP forwarding enabled. To do so, run:

echo 1 > /proc/sys/net/ipv4/ip_forward

Let me know if that helps.

-Mike

/-----------------------+-----------------------\

Mike Joseph | Netaxs, Inc. |
Network Engineering | ~~~~~~~~~~~~ |
~~~~~~~~~~~~~~~~~~~ | (610)825-9800 |
mjoseph@netaxs.com | www.netaxs.com |

\-----------------------+-----------------------/