It took me a couple of weeks to find a solution to this problem. In my
case, I had a static PPP connection and was brining on a DSL connection to
the internet. I wanted to have both active for some cut over period. To
make this work, you need to use source routing. With this, it works like a
charm.
So, for a concrete example:
eth0 is 99.99.99.99 router 99.99.99.100
eth1 is 199.199.199.199 router 199.199.199.200
My default route is set to 99.99.99.100
Install iproute2
Edit /etc/iproute2/rt_tables and add a line like "200 other"
ip rule add from 199.199.199.199 lookup other
ip route add default via 199.199.199.200 table other
That's all it takes. A rule now exists to send out through eth1 any
packets that originate from 199.199.199.199 which is what any connection to
that interface will have for a response ip address.
-rwd
At 10:18 AM 10/19/00 -0400, technews@egsx.com wrote:
>Hi,
>
>I would like to know if a Linux box with two ethermet cards eth0 and eth1
>can handle the following routing requierments.
>
>If traffic is received via eth0 the packets are routed back throught eth0
>and if traffic is received through eth1 the packets are routed back
>through eth1.
>
>Each ethernet card has its own IP and are connected to different routers
>that are connected to the net. Can this be done with static routing? or
>is there something that has to be installed to do that since the default
>gateway will always force teh traffic to go over eth0.
>
>Thanks in advance
>Adonis
>
>
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-net" in
>the body of a message to majordomo@vger.kernel.org
Randall W Dean
Director, System Software
Mercury Computer Systems
199 Riverneck Road
Chelmsford, MA 01824
(978) 256 0052 x1493
FAX: (978) 256 5205
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:24 EST