From: Alan Romaniuc <alan.romaniuc@inteligensa.com.br>
To: lartc@vger.kernel.org
Subject: [LARTC] Load Balancing Problems
Date: Fri, 05 Jan 2007 11:33:39 +0000 [thread overview]
Message-ID: <459E3793.6040805@inteligensa.com.br> (raw)
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
next reply other threads:[~2007-01-05 11:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-05 11:33 Alan Romaniuc [this message]
2007-01-08 15:58 ` [LARTC] Load Balancing Problems Alan Romaniuc
2007-01-09 13:36 ` Luciano Ruete
2007-01-09 22:42 ` Alan Romaniuc
2007-01-10 13:29 ` Kuolung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=459E3793.6040805@inteligensa.com.br \
--to=alan.romaniuc@inteligensa.com.br \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.