All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] load balance/redundancy
@ 2000-12-10  5:22 Paul
  2000-12-10 16:30 ` Arthur
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Paul @ 2000-12-10  5:22 UTC (permalink / raw)
  To: lartc

<PRE>I have looked through the archives, and I can't find the answer(not that
it isn't there)

I have two connections to the net.  I want load balancing and redundancy.

cable      adsl
(24.141.)  (64.229)
|<i>          |
</I>|<i>          |
</I>|<i>          |
</I>|<i>          |
</I>------------
|<i>  linux   |
</I>|<i>redhat 7.0|
</I>
I have no idea were to even start.  I would like equal access to both
connections.  Please help.  I would assume that alot of people do this
already, or want to.  A sample config would be very nice.


Thanks in advance for your help!

--Paul




</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [LARTC] load balance/redundancy
  2000-12-10  5:22 [LARTC] load balance/redundancy Paul
@ 2000-12-10 16:30 ` Arthur
  2000-12-10 17:32 ` hesselsp
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Arthur @ 2000-12-10 16:30 UTC (permalink / raw)
  To: lartc

<PRE>On Sun, 10 Dec 2000, Paul wrote:

&gt;<i> I have looked through the archives, and I can't find the answer(not that
</I>&gt;<i> it isn't there)
</I>&gt;<i> 
</I>&gt;<i> I have two connections to the net.  I want load balancing and redundancy.
</I>&gt;<i> 
</I>&gt;<i> cable      adsl
</I>&gt;<i> (24.141.)  (64.229)
</I>&gt;<i> |          |
</I>&gt;<i> |          |
</I>&gt;<i> |          |
</I>&gt;<i> |          |
</I>&gt;<i> ------------
</I>&gt;<i> |  linux   |
</I>&gt;<i> |redhat 7.0|
</I>&gt;<i> 
</I>&gt;<i> I have no idea were to even start.  I would like equal access to both
</I>&gt;<i> connections.  Please help.  I would assume that alot of people do this
</I>&gt;<i> already, or want to.  A sample config would be very nice.
</I>
Hmm. Try reading the ip route 2 documentation on the ip command, and look
at the 'nexthop' arguments to route add. This will set up multipath routes
which do most of what you want.

There does seem to be something of a discrepancy between the ordinary
default route code and the multipath code in the handling of down
links that might bite you though when one of the links goes down...

Doei, Arthur. (Still figuring that last one out)

-- 
  /\    / |      <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching



</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [LARTC] load balance/redundancy
  2000-12-10  5:22 [LARTC] load balance/redundancy Paul
  2000-12-10 16:30 ` Arthur
@ 2000-12-10 17:32 ` hesselsp
  2000-12-10 17:57 ` Arthur
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hesselsp @ 2000-12-10 17:32 UTC (permalink / raw)
  To: lartc

<PRE>Well, I think I have the redundancy down... In a kludgy way.  Right now I
have two default routes.

route add default gw 24.141.xxx.1
route add default gw 64.229.xxx.1

I can write a script that if one of connections goes down for x number of
pings, then remove the route.

Now for the load balancing.

Can you point me to documentation on iproute?  Other then the Advanced
Routing HOWTO, unless I am missing something in it.

Thanks again,
Paul

On Sun, 10 Dec 2000, Arthur van Leeuwen wrote:

&gt;<i> On Sun, 10 Dec 2000, Paul wrote:
</I>&gt;<i> 
</I>&gt;<i> &gt; I have looked through the archives, and I can't find the answer(not that
</I>&gt;<i> &gt; it isn't there)
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; I have two connections to the net.  I want load balancing and redundancy.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; cable      adsl
</I>&gt;<i> &gt; (24.141.)  (64.229)
</I>&gt;<i> &gt; |          |
</I>&gt;<i> &gt; |          |
</I>&gt;<i> &gt; |          |
</I>&gt;<i> &gt; |          |
</I>&gt;<i> &gt; ------------
</I>&gt;<i> &gt; |  linux   |
</I>&gt;<i> &gt; |redhat 7.0|
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; I have no idea were to even start.  I would like equal access to both
</I>&gt;<i> &gt; connections.  Please help.  I would assume that alot of people do this
</I>&gt;<i> &gt; already, or want to.  A sample config would be very nice.
</I>&gt;<i> 
</I>&gt;<i> Hmm. Try reading the ip route 2 documentation on the ip command, and look
</I>&gt;<i> at the 'nexthop' arguments to route add. This will set up multipath routes
</I>&gt;<i> which do most of what you want.
</I>&gt;<i> 
</I>&gt;<i> There does seem to be something of a discrepancy between the ordinary
</I>&gt;<i> default route code and the multipath code in the handling of down
</I>&gt;<i> links that might bite you though when one of the links goes down...
</I>&gt;<i> 
</I>&gt;<i> Doei, Arthur. (Still figuring that last one out)
</I>&gt;<i> 
</I>&gt;<i> 
</I>
-- 
HEY!  I'm a guy like me!

		--Homer



</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [LARTC] load balance/redundancy
  2000-12-10  5:22 [LARTC] load balance/redundancy Paul
  2000-12-10 16:30 ` Arthur
  2000-12-10 17:32 ` hesselsp
@ 2000-12-10 17:57 ` Arthur
  2000-12-10 23:50 ` Paul
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Arthur @ 2000-12-10 17:57 UTC (permalink / raw)
  To: lartc

<PRE>On Sun, 10 Dec 2000 <A HREF="mailto:hesselsp@ashaman.dhs.org">hesselsp@ashaman.dhs.org</A> wrote:

&gt;<i> Well, I think I have the redundancy down... In a kludgy way.  Right now I
</I>&gt;<i> have two default routes.
</I>
&gt;<i> route add default gw 24.141.xxx.1
</I>&gt;<i> route add default gw 64.229.xxx.1
</I>
Actually, if I understand the code correctly what you do here is in fact
create a multipath route. A cleaner way to do so is using ip route 2 as
follows:

ip route add default nexthop via 24.141.xxx.1 nexthop via 64.229.xxx.1

This explicitly states that you will be using a multipath route and balances
outgoing routes over the two interfaces.

&gt;<i> I can write a script that if one of connections goes down for x number of
</I>&gt;<i> pings, then remove the route.
</I>
And here's the crux. It would be nice for the kernel to use its idea of
gateway reachability (in the neighbor cache) to automatically ignore an
upstream hop in case it is dead. However, for multipath routes, no
death detection is done on the gateways in the different hops. This is
quite somewhat different from the single default route behaviour 

&gt;<i> Now for the load balancing.
</I>
The kernel balances outgoing routes over the upstream interfaces. Unless all
your packets go to the same address, that should balance your traffic
already. Other than that there's some code based on EQL that will flush the
route cache after every packet, thereby smashing the route-balancing down to
packet-level load balancing. I can't seem to find the URL for that code,
though, unfortunately.

&gt;<i> Can you point me to documentation on iproute?  Other then the Advanced
</I>&gt;<i> Routing HOWTO, unless I am missing something in it.
</I>
<A HREF="http://snafu.freedom.org/linux2.2/iproute-notes.html#doc">http://snafu.freedom.org/linux2.2/iproute-notes.html#doc</A>

There's some more interesting stuff on <A HREF="http://snafu.freedom.org/linux2.2/">http://snafu.freedom.org/linux2.2/</A>
as well. 

Doei, Arthur.

-- 
  /\    / |      <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching



</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [LARTC] load balance/redundancy
  2000-12-10  5:22 [LARTC] load balance/redundancy Paul
                   ` (2 preceding siblings ...)
  2000-12-10 17:57 ` Arthur
@ 2000-12-10 23:50 ` Paul
  2000-12-11  0:11 ` hesselsp
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Paul @ 2000-12-10 23:50 UTC (permalink / raw)
  To: lartc

<PRE>Arthur,

Thanks for your help.  I tried what you suggested, here is the result:

# /sbin/ip route add default nexthop via 24.141.xxx.1 nexthop via
64.229.xxx.1
RTNETLINK answers: Network is unreachable

So instead, I tried:

# /sbin/ip route add default nexthop via 24.141.xxx.1 dev eth0 nexthop via
64.229.xxx.1 dev ppp0

# ip route ls
64.229.xxx.1 dev ppp0  proto kernel  scope link  src 64.229.xxx.12
24.141.xxx.0/22 dev eth0  proto kernel  scope link  src 24.141.xxx.89
127.0.0.0/8 dev lo  scope link
default
        nexthop via 24.141.xxx.1  dev eth0 weight 1
        nexthop via 64.229.xxx.1  dev ppp0 weight 1

and that seemed to work, so I tried:

# /sbin/ip route add default nexthop dev eth0 nexthop dev ppp0

# ip route ls
64.229.xxx.1 dev ppp0  proto kernel  scope link  src 64.229.xxx.12
24.141.xxx.0/22 dev eth0  proto kernel  scope link  src 24.141.xxx.89
127.0.0.0/8 dev lo  scope link
default
        nexthop dev eth0 weight 1
        nexthop dev ppp0 weight 1


Now this seems to work.  Is there anything wrong with this?  Can you take
a guess at why what you suggested didn't work?  I think I tried all the
different permutations with addresses, I think the problem must come from
the pppoe interface.

Now all I have to do is kludge something together for my redundancy, set
up firewalling, and masqerading.

Thanks,
Paul


On Sun, 10 Dec 2000, Arthur van Leeuwen wrote:

&gt;<i> On Sun, 10 Dec 2000 <A HREF="mailto:hesselsp@ashaman.dhs.org">hesselsp@ashaman.dhs.org</A> wrote:
</I>&gt;<i> 
</I>&gt;<i> &gt; Well, I think I have the redundancy down... In a kludgy way.  Right now I
</I>&gt;<i> &gt; have two default routes.
</I>&gt;<i> 
</I>&gt;<i> &gt; route add default gw 24.141.xxx.1
</I>&gt;<i> &gt; route add default gw 64.229.xxx.1
</I>&gt;<i> 
</I>&gt;<i> Actually, if I understand the code correctly what you do here is in fact
</I>&gt;<i> create a multipath route. A cleaner way to do so is using ip route 2 as
</I>&gt;<i> follows:
</I>&gt;<i> 
</I>&gt;<i> ip route add default nexthop via 24.141.xxx.1 nexthop via 64.229.xxx.1
</I>&gt;<i> 
</I>&gt;<i> This explicitly states that you will be using a multipath route and balances
</I>&gt;<i> outgoing routes over the two interfaces.
</I>&gt;<i> 
</I>&gt;<i> &gt; I can write a script that if one of connections goes down for x number of
</I>&gt;<i> &gt; pings, then remove the route.
</I>&gt;<i> 
</I>&gt;<i> And here's the crux. It would be nice for the kernel to use its idea of
</I>&gt;<i> gateway reachability (in the neighbor cache) to automatically ignore an
</I>&gt;<i> upstream hop in case it is dead. However, for multipath routes, no
</I>&gt;<i> death detection is done on the gateways in the different hops. This is
</I>&gt;<i> quite somewhat different from the single default route behaviour 
</I>&gt;<i> 
</I>&gt;<i> &gt; Now for the load balancing.
</I>&gt;<i> 
</I>&gt;<i> The kernel balances outgoing routes over the upstream interfaces. Unless all
</I>&gt;<i> your packets go to the same address, that should balance your traffic
</I>&gt;<i> already. Other than that there's some code based on EQL that will flush the
</I>&gt;<i> route cache after every packet, thereby smashing the route-balancing down to
</I>&gt;<i> packet-level load balancing. I can't seem to find the URL for that code,
</I>&gt;<i> though, unfortunately.
</I>&gt;<i> 
</I>&gt;<i> &gt; Can you point me to documentation on iproute?  Other then the Advanced
</I>&gt;<i> &gt; Routing HOWTO, unless I am missing something in it.
</I>&gt;<i> 
</I>&gt;<i> <A HREF="http://snafu.freedom.org/linux2.2/iproute-notes.html#doc">http://snafu.freedom.org/linux2.2/iproute-notes.html#doc</A>
</I>&gt;<i> 
</I>&gt;<i> There's some more interesting stuff on <A HREF="http://snafu.freedom.org/linux2.2/">http://snafu.freedom.org/linux2.2/</A>
</I>&gt;<i> as well. 
</I>&gt;<i> 
</I>&gt;<i> Doei, Arthur.
</I>&gt;<i> 
</I>&gt;<i> 
</I>
-- 
HEY!  I'm a guy like me!

		--Homer



</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [LARTC] load balance/redundancy
  2000-12-10  5:22 [LARTC] load balance/redundancy Paul
                   ` (3 preceding siblings ...)
  2000-12-10 23:50 ` Paul
@ 2000-12-11  0:11 ` hesselsp
  2000-12-11  8:00 ` Arthur
  2000-12-11  9:56 ` dan_c
  6 siblings, 0 replies; 8+ messages in thread
From: hesselsp @ 2000-12-11  0:11 UTC (permalink / raw)
  To: lartc

<PRE>I take part of this back:

On Sun, 10 Dec 2000, Paul wrote:

&gt;<i> Arthur,
</I>&gt;<i> 
</I>&gt;<i> Thanks for your help.  I tried what you suggested, here is the result:
</I>&gt;<i> 
</I>&gt;<i> # /sbin/ip route add default nexthop via 24.141.xxx.1 nexthop via
</I>&gt;<i> 64.229.xxx.1
</I>&gt;<i> RTNETLINK answers: Network is unreachable
</I>&gt;<i> 
</I>&gt;<i> So instead, I tried:
</I>&gt;<i> 
</I>&gt;<i> # /sbin/ip route add default nexthop via 24.141.xxx.1 dev eth0 nexthop via
</I>&gt;<i> 64.229.xxx.1 dev ppp0
</I>&gt;<i> 
</I>&gt;<i> # ip route ls
</I>&gt;<i> 64.229.xxx.1 dev ppp0  proto kernel  scope link  src 64.229.xxx.12
</I>&gt;<i> 24.141.xxx.0/22 dev eth0  proto kernel  scope link  src 24.141.xxx.89
</I>&gt;<i> 127.0.0.0/8 dev lo  scope link
</I>&gt;<i> default
</I>&gt;<i>         nexthop via 24.141.xxx.1  dev eth0 weight 1
</I>&gt;<i>         nexthop via 64.229.xxx.1  dev ppp0 weight 1
</I>
This DOES work.


&gt;<i> 
</I>&gt;<i> and that seemed to work, so I tried:
</I>&gt;<i> 
</I>&gt;<i> # /sbin/ip route add default nexthop dev eth0 nexthop dev ppp0
</I>&gt;<i> 
</I>&gt;<i> # ip route ls
</I>&gt;<i> 64.229.xxx.1 dev ppp0  proto kernel  scope link  src 64.229.xxx.12
</I>&gt;<i> 24.141.xxx.0/22 dev eth0  proto kernel  scope link  src 24.141.xxx.89
</I>&gt;<i> 127.0.0.0/8 dev lo  scope link
</I>&gt;<i> default
</I>&gt;<i>         nexthop dev eth0 weight 1
</I>&gt;<i>         nexthop dev ppp0 weight 1
</I>&gt;<i> 
</I>
This does WEIRD things.  I can traceroute to ftp.cdrom.com, but I can't
ping it, nor can I ftp to it.


&gt;<i> 
</I>&gt;<i> Now this seems to work.  Is there anything wrong with this?  Can you take
</I>&gt;<i> a guess at why what you suggested didn't work?  I think I tried all the
</I>&gt;<i> different permutations with addresses, I think the problem must come from
</I>&gt;<i> the pppoe interface.
</I>&gt;<i> 
</I>&gt;<i> Now all I have to do is kludge something together for my redundancy, set
</I>&gt;<i> up firewalling, and masqerading.
</I>&gt;<i> 
</I>&gt;<i> Thanks,
</I>&gt;<i> Paul
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> On Sun, 10 Dec 2000, Arthur van Leeuwen wrote:
</I>&gt;<i> 
</I>&gt;<i> &gt; On Sun, 10 Dec 2000 <A HREF="mailto:hesselsp@ashaman.dhs.org">hesselsp@ashaman.dhs.org</A> wrote:
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; Well, I think I have the redundancy down... In a kludgy way.  Right now I
</I>&gt;<i> &gt; &gt; have two default routes.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; route add default gw 24.141.xxx.1
</I>&gt;<i> &gt; &gt; route add default gw 64.229.xxx.1
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; Actually, if I understand the code correctly what you do here is in fact
</I>&gt;<i> &gt; create a multipath route. A cleaner way to do so is using ip route 2 as
</I>&gt;<i> &gt; follows:
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; ip route add default nexthop via 24.141.xxx.1 nexthop via 64.229.xxx.1
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; This explicitly states that you will be using a multipath route and balances
</I>&gt;<i> &gt; outgoing routes over the two interfaces.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; I can write a script that if one of connections goes down for x number of
</I>&gt;<i> &gt; &gt; pings, then remove the route.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; And here's the crux. It would be nice for the kernel to use its idea of
</I>&gt;<i> &gt; gateway reachability (in the neighbor cache) to automatically ignore an
</I>&gt;<i> &gt; upstream hop in case it is dead. However, for multipath routes, no
</I>&gt;<i> &gt; death detection is done on the gateways in the different hops. This is
</I>&gt;<i> &gt; quite somewhat different from the single default route behaviour 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; Now for the load balancing.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; The kernel balances outgoing routes over the upstream interfaces. Unless all
</I>&gt;<i> &gt; your packets go to the same address, that should balance your traffic
</I>&gt;<i> &gt; already. Other than that there's some code based on EQL that will flush the
</I>&gt;<i> &gt; route cache after every packet, thereby smashing the route-balancing down to
</I>&gt;<i> &gt; packet-level load balancing. I can't seem to find the URL for that code,
</I>&gt;<i> &gt; though, unfortunately.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt; Can you point me to documentation on iproute?  Other then the Advanced
</I>&gt;<i> &gt; &gt; Routing HOWTO, unless I am missing something in it.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; <A HREF="http://snafu.freedom.org/linux2.2/iproute-notes.html#doc">http://snafu.freedom.org/linux2.2/iproute-notes.html#doc</A>
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; There's some more interesting stuff on <A HREF="http://snafu.freedom.org/linux2.2/">http://snafu.freedom.org/linux2.2/</A>
</I>&gt;<i> &gt; as well. 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; Doei, Arthur.
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; 
</I>&gt;<i> 
</I>&gt;<i> 
</I>
-- 
HEY!  I'm a guy like me!

		--Homer



</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [LARTC] load balance/redundancy
  2000-12-10  5:22 [LARTC] load balance/redundancy Paul
                   ` (4 preceding siblings ...)
  2000-12-11  0:11 ` hesselsp
@ 2000-12-11  8:00 ` Arthur
  2000-12-11  9:56 ` dan_c
  6 siblings, 0 replies; 8+ messages in thread
From: Arthur @ 2000-12-11  8:00 UTC (permalink / raw)
  To: lartc

<PRE>On Sun, 10 Dec 2000, Paul wrote:

&gt;<i> Arthur,
</I>&gt;<i> 
</I>&gt;<i> Thanks for your help.  I tried what you suggested, here is the result:
</I>&gt;<i> 
</I>&gt;<i> # /sbin/ip route add default nexthop via 24.141.xxx.1 nexthop via
</I>&gt;<i> 64.229.xxx.1
</I>&gt;<i> RTNETLINK answers: Network is unreachable
</I>
You forgot to setup host routes to 64.229.xxx.1 and 24.141.xxx.1 over the 
correct interfaces.

&gt;<i> So instead, I tried:
</I>&gt;<i> 
</I>&gt;<i> # /sbin/ip route add default nexthop via 24.141.xxx.1 dev eth0 nexthop via
</I>&gt;<i> 64.229.xxx.1 dev ppp0
</I>
Well, that works as well. No host routes needed. :)

&gt;<i> # ip route ls
</I>&gt;<i> 64.229.xxx.1 dev ppp0  proto kernel  scope link  src 64.229.xxx.12
</I>&gt;<i> 24.141.xxx.0/22 dev eth0  proto kernel  scope link  src 24.141.xxx.89
</I>&gt;<i> 127.0.0.0/8 dev lo  scope link
</I>&gt;<i> default
</I>&gt;<i>         nexthop dev eth0 weight 1
</I>&gt;<i>         nexthop dev ppp0 weight 1
</I>
Ah, yes. You might get problems with the selection of the source address you
come from though. The situation that might occur is a route going over ppp0
using 24.141.xxx.89 as source address. That will probably *not* work.

&gt;<i> Now this seems to work.  Is there anything wrong with this?  Can you take
</I>&gt;<i> a guess at why what you suggested didn't work?  I think I tried all the
</I>&gt;<i> different permutations with addresses, I think the problem must come from
</I>&gt;<i> the pppoe interface.
</I>
I don't think the problem comes from the pppoe interface. I've set up stuff
like this with ppp over pptp over ethernet links (*silly* ADSL setup), and
that works as well.

&gt;<i> Now all I have to do is kludge something together for my redundancy, set
</I>&gt;<i> up firewalling, and masqerading.
</I>
Note: you may want to set up policy rules for dealing with packets that
already have a source or destination address. This will let servers running
on your system that bind to 0.0.0.0/0 answer to requests from both links
over the correct link. Browse through the mailinglist archives for some
hints on how to set that up.

Doei, Arthur.

-- 
  /\    / |      <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching



</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [LARTC] load balance/redundancy
  2000-12-10  5:22 [LARTC] load balance/redundancy Paul
                   ` (5 preceding siblings ...)
  2000-12-11  8:00 ` Arthur
@ 2000-12-11  9:56 ` dan_c
  6 siblings, 0 replies; 8+ messages in thread
From: dan_c @ 2000-12-11  9:56 UTC (permalink / raw)
  To: lartc

<PRE>
Be attentive : you don't use 24.141.xxx.1 -&gt; xxx should be a number and the &quot;24.141.xxx.1&quot; should be the gateway you're using with the 24.141. ip adress (.videotron.ca?)
and the 64.226.xxx.1 should be the gw your 64.226. ip adress uses (pacbell.net ? :)))) )

Best Regards
   Dan Caescu

&gt;<i> &gt; 
</I>&gt;<i> &gt; # /sbin/ip route add default nexthop via 24.141.xxx.1 nexthop via
</I>&gt;<i> &gt; 64.229.xxx.1
</I>&gt;<i> &gt; RTNETLINK answers: Network is unreachable
</I>&gt;<i> 
</I>&gt;<i> You forgot to setup host routes to 64.229.xxx.1 and 24.141.xxx.1 over the 
</I>&gt;<i> correct interfaces.
</I>&gt;<i> 
</I>&gt;<i> &gt; So instead, I tried:
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; # /sbin/ip route add default nexthop via 24.141.xxx.1 dev eth0 nexthop via
</I>&gt;<i> &gt; 64.229.xxx.1 dev ppp0
</I>&gt;<i> 
</I>&gt;<i> Well, that works as well. No host routes needed. :)
</I>&gt;<i> 
</I>&gt;<i> &gt; # ip route ls
</I>&gt;<i> &gt; 64.229.xxx.1 dev ppp0  proto kernel  scope link  src 64.229.xxx.12
</I>&gt;<i> &gt; 24.141.xxx.0/22 dev eth0  proto kernel  scope link  src 24.141.xxx.89
</I>&gt;<i> &gt; 127.0.0.0/8 dev lo  scope link
</I>&gt;<i> &gt; default
</I>&gt;<i> &gt;         nexthop dev eth0 weight 1
</I>&gt;<i> &gt;         nexthop dev ppp0 weight 1
</I>&gt;<i> 
</I>&gt;<i> Ah, yes. You might get problems with the selection of the source address you
</I>&gt;<i> come from though. The situation that might occur is a route going over ppp0
</I>&gt;<i> using 24.141.xxx.89 as source address. That will probably *not* work.
</I>&gt;<i> 
</I>&gt;<i> &gt; Now this seems to work.  Is there anything wrong with this?  Can you take
</I>&gt;<i> &gt; a guess at why what you suggested didn't work?  I think I tried all the
</I>&gt;<i> &gt; different permutations with addresses, I think the problem must come from
</I>&gt;<i> &gt; the pppoe interface.
</I>&gt;<i> 
</I>&gt;<i> I don't think the problem comes from the pppoe interface. I've set up stuff
</I>&gt;<i> like this with ppp over pptp over ethernet links (*silly* ADSL setup), and
</I>&gt;<i> that works as well.
</I>&gt;<i> 
</I>&gt;<i> &gt; Now all I have to do is kludge something together for my redundancy, set
</I>&gt;<i> &gt; up firewalling, and masqerading.
</I>&gt;<i> 
</I>&gt;<i> Note: you may want to set up policy rules for dealing with packets that
</I>&gt;<i> already have a source or destination address. This will let servers running
</I>&gt;<i> on your system that bind to 0.0.0.0/0 answer to requests from both links
</I>&gt;<i> over the correct link. Browse through the mailinglist archives for some
</I>&gt;<i> hints on how to set that up.
</I>&gt;<i> 
</I>&gt;<i> Doei, Arthur.
</I>&gt;<i> 
</I>&gt;<i> -- 
</I>&gt;<i>   /\    / |      <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>      | Work like you don't need the money
</I>&gt;<i>  /__\  /  | A friend is someone with whom | Love like you have never been hurt
</I>&gt;<i> /    \/__ | you can dare to be yourself   | Dance like there's nobody watching
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> _______________________________________________
</I>&gt;<i> LARTC mailing list / <A HREF="mailto:LARTC@mailman.ds9a.nl">LARTC@mailman.ds9a.nl</A>
</I>&gt;<i> <A HREF="http://mailman.ds9a.nl/mailman/listinfo/lartc">http://mailman.ds9a.nl/mailman/listinfo/lartc</A> HOWTO: <A HREF="http://ds9a.nl/2.4Routing/">http://ds9a.nl/2.4Routing/</A>
</I>



</PRE>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-12-11  9:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-10  5:22 [LARTC] load balance/redundancy Paul
2000-12-10 16:30 ` Arthur
2000-12-10 17:32 ` hesselsp
2000-12-10 17:57 ` Arthur
2000-12-10 23:50 ` Paul
2000-12-11  0:11 ` hesselsp
2000-12-11  8:00 ` Arthur
2000-12-11  9:56 ` dan_c

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.