Re: Two NIC cards => Possible to Configure Two Default Routes?
From: John Adams (johna_at_onevista.com)
Date: 09/26/05
- Next message: James Knott: "Re: VPN to Linux server behind NAT router from XP Home?"
- Previous message: Bit Twister: "Re: Shorewall and CONTINUE policy"
- In reply to: James Knott: "Re: Two NIC cards => Possible to Configure Two Default Routes?"
- Next in thread: David Schwartz: "Re: Two NIC cards => Possible to Configure Two Default Routes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Sep 2005 21:16:48 GMT
In article <Gd2dnWAQdrJbyaXenZ2dnUVZ_s2dnZ2d@rogers.com>,
James Knott <james.knott@rogers.com> wrote:
>beagle197@hotmail.com wrote:
>
>> Folks,
>> I have two DSL providers, can I configure two default routes that are
>> able to send and receive network packets on both interfaces (eth0 and
>> eth1) at the same time? It would seem to me that it would be possible,
>> since if eth0 receives traffic, then response would be sent back
>> through eth0. The same with eth1. I noted a lot of discussion about
>> this topic from past posts, where folks have achieved this using
>> external equipment routers, or that it was possible using Solaris OS. I
>> am guessing that some Linux folks have devised or written their
>> customized solution since they went to the extra effort to modify the
>> TCP/IP stack or tweak the networking kernel modules (but I haven't seen
>> or heard anything on this point for sure at this time). Is it possible,
>> and how can I achieve it? I tried to use a higher metric for default
>> route eth0 verses eth1, but packets were not sent on both interfaces.
>> Thanks, BEA
>
>There can only be one default route. There is no mechanism by which an app
>can determine which port a packet came in on. Transmitted packets are
>simply routed according to the routing tables in your computer.
Here's a part of my routing table:
66.93.49.0/24 dev eth0 proto kernel scope link src 66.93.49.232
66.93.49.0/24 dev eth1 proto kernel scope link src 66.93.49.140
default equalize
nexthop via 66.93.49.1 dev eth0 weight 1
nexthop via 66.93.49.1 dev eth1 weight 1
It has two default routes, balanced for outbound. See man ip.
And yes, reply packets go back out the interface from whence they came.
Do the following to achieve this. (May be overkill)
echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter
echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_filter
echo 1 > /proc/sys/net/ipv4/conf/eth1/arp_filter
- Next message: James Knott: "Re: VPN to Linux server behind NAT router from XP Home?"
- Previous message: Bit Twister: "Re: Shorewall and CONTINUE policy"
- In reply to: James Knott: "Re: Two NIC cards => Possible to Configure Two Default Routes?"
- Next in thread: David Schwartz: "Re: Two NIC cards => Possible to Configure Two Default Routes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|