[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configuring a Linux Router Question



Hi, Shlomi!

On Tue, Aug 14, 2001 at 05:46:12PM +0300, you wrote the following:

> I have two ethernet cards in a computer, each with its own IP address.
> each card is connected to a different computer. Now, I want to route the
> packets that are sent from A to D and from D to A, where
> 
>  -          ----         -
> |A|--------|B  C|-------|D|
>  -          ----         -
> Remote       Local       Remote
> Computer     Comp.       Comp.
> 
> How should I configure all the routing tables? Assume that all the
> machines are Linuxes.

You shouldn't -- you just need to enable packet forwarding:
echo 1 > /proc/sys/net/ipv4/ip_forward
and packets will be routed.


-- 
Alex Shnitman <alexsh@hectic.net>
http://alexsh.hectic.net/   UIN 188956
PGP 0xEC5D619D / E1 F2 7B 6C A0 31 80 28  63 B8 02 BA 65 C7 8B BA

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il