All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Load Balancing Problems
@ 2007-01-05 11:33 Alan Romaniuc
  2007-01-08 15:58 ` Alan Romaniuc
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alan Romaniuc @ 2007-01-05 11:33 UTC (permalink / raw)
  To: lartc

Hi,

I have a router that got its second link. I was trying to do load 
balancing, but i can not get it to work properly.

Just one link works at time, and is always the second in the command ip 
route add default table 222 proto static.

Am I missing something? My script is below. I am using Debian, tried 
with kernel 2.6.19 (my compilation) or debian's  one (2.6.18-3-486), 
same results

Thanks


====================================ip rule add prio 50 table main
ip route del default table main

ip rule add prio $PRIO1 from $NET1 table $PRIO1
ip route add default via $IPGW1 dev $INTERFACE1 src $IP1 proto static 
table $PRIO1
ip route append prohibit default table $PRIO1 metric 1 proto static

ip rule add prio $PRIO2 from $NET2 table $PRIO2
ip route add default via $IPGW2 dev $INTERFACE2 src $IP2 proto static 
table $PRIO2
ip route append prohibit default table $PRIO2 metric 1 proto static

ip rule add prio 222 table 222
ip route add default table 222 proto static \
          nexthop via $IPGW1 dev $INTERFACE1 weight $WE1 \
          nexthop via $IPGW2 dev $INTERFACE2 weight $WE2
================================

-- 
Alan Romaniuc

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2007-01-10 13:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-05 11:33 [LARTC] Load Balancing Problems Alan Romaniuc
2007-01-08 15:58 ` Alan Romaniuc
2007-01-09 13:36 ` Luciano Ruete
2007-01-09 22:42 ` Alan Romaniuc
2007-01-10 13:29 ` Kuolung

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.