> Message: 1 > Date: Fri, 06 Oct 2006 00:06:08 -0400 > From: Kevin White <kwhite@xxxxxxxxxxxxx> > Subject: Two upstream gateways, only use one unless it fails? > To: lartc@xxxxxxxxxxxxxxx > Message-ID: <4525D630.1040401@xxxxxxxxxxxxx> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > I'm looking at setting up a system with two upstream Internet routers, > the second to be used only if the first fails. > > There's a lot of information on using Julian's patches (the nano > document), and I'm still digesting all of it. It looks pretty slick, > and I think it will work...but I don't see if I can actually set up > multipath and have the kernel not use the second interface unless it has > to. It looks like I can only set weight and set up a percentage rule. > > Am I missing something? Can I say "here are two routes, always use > route one unless you can't?" > > Thanks, > > Kevin Hi Kevin You can use multipath with different weights see below taken from lartc.org... ############### cute################## 4.2.2. Load balancing The second question is how to balance traffic going out over the two providers. This is actually not hard if you already have set up split access as above. Instead of choosing one of the two providers as your default route, you now set up the default route to be a multipath route. In the default kernel this will balance routes over the two providers. It is done as follows (once more building on the example in the section on split-access): ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \ nexthop via $P2 dev $IF2 weight 1 This will balance the routes over both providers. The weight parameters can be tweaked to favor one provider over the other. ####################cute###################### Then you can do something like this: ip route add default scope global nexthop via $P1 dev $IF1 weight 100 \ nexthop via $P2 dev $IF2 weight 1 ^^^^^^^^^^ > ************************************ best regards -- Paulo Ricardo Bruck - consultor Contato Global Solutions - http://www.contato.com.br fone 011 5031-4932 011 5034-1732 cel 011 9235-4327
Attachment:
signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente
_______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc