All of lore.kernel.org
 help / color / mirror / Atom feed
From: "XMundo - Soporte Tecnico" <soporte@xmundo.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Load Balancing
Date: Mon, 26 Jul 2004 01:35:45 +0000	[thread overview]
Message-ID: <01ea01c472b0$e0449ca0$fd01000a@estacion1> (raw)
In-Reply-To: <marc-lartc-102512835209719@msgid-missing>

Hi.

I´m making an script for load balancing of two
cablemodems internet connections toward my LAN.

The problem is that when I try to 'equalize' the
the two internet connections with the weight=1 it
doesn´t work. On the other hand, if I put 5 and 5
it works, but not at 100%, it does intermittlently,
some times works and others don´t.

example:

ip route add default equalize\
 nexthop via $P1 dev $IF1 weight 5\
 nexthop via $P2 dev $IF2 weight 5

Besides, when I open, for example, the firefox browser, it
takes a lot to start navigating, sometimes it works and other
times gives an error and I can´t navigate.

From the server it works properly, but form the clients PCs
doesn´t.

By the way, I´m making NAT toward the Client PCs.

Do you have any idea why does it take so long to start
navigating and why sometimes it works and sometimes doesn´t.


This is the current script running in my server:


#========================
P0_NET\x10.0.1.0/24
IF0=eth1
IP0\x10.0.1.1

IF1=eth0
IP1=xxx.xxx.xxx.7
P1_NET=xxx.xxx.xxx.0/24
P1=xxx.xxx.xxx.1

IF2=eth2
IP2=yyy.yyy.yyy.21
P2_NET=yyy.yyy.yyy.0/24
P2=yyy.yyy.yyy.1

echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter

echo 3 > /proc/sys/net/ipv4/route/gc_elasticity
echo 1 > /proc/sys/net/ipv4/route/gc_interval
echo 0 > /proc/sys/net/ipv4/route/gc_timeout

ip route flush cache
ip route flush all
ip route flush table modem0
ip route flush table modem1

ip rule add from $IP1 lookup modem0
ip rule add from $IP2 lookup modem1

ip route add $P1_NET dev $IF1 src $IP1
ip route add $P2_NET dev $IF2 src $IP2
ip route add $P0_NET dev $IF0 src $IP0

ip rule add from $P1_NET lookup modem0
ip route add $P0_NET dev $IF0 table modem0
ip route add 0/0 via $P1 table modem0

ip rule add from $P2_NET lookup modem1
ip route add $P0_NET dev $IF0 table modem1
ip route add 0/0 via $P2 table modem1

ip route add default equalize\
 nexthop via $P1 dev $IF1 weight 5\
 nexthop via $P2 dev $IF2 weight 5

#========================
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2004-07-26  1:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-26 21:52 [LARTC] Load balancing Greg Scott
2002-06-28  5:27 ` William L. Thomson Jr.
2002-07-04 14:52 ` bert hubert
2003-02-19 19:27 ` Paul English
2003-05-08 11:50 ` [LARTC] load balancing Lucas Aimaretto
2003-05-08 13:08 ` Sjaak Nabuurs
2003-05-09 15:44 ` Víctor Nuño
2003-05-09 15:55 ` Martin A. Brown
2003-11-28  1:41 ` Евгени Гечев
2003-11-28 12:38 ` Ivo Vachkov
2003-11-28 18:47 ` Evgeni Gechev
2003-11-28 19:02 ` Artūras Šlajus
2003-11-28 23:22 ` Ivo Vachkov
2004-07-26  1:35 ` XMundo - Soporte Tecnico [this message]
2004-07-26 23:58 ` [LARTC] Load Balancing XMundo - Soporte Tecnico
2004-09-15 17:10 ` [LARTC] load balancing pbruna
2004-09-17  3:21 ` Glen Mabey
2005-01-12 21:15 ` Antonio Pérez
2005-11-16 20:13 ` comp.techs
2006-10-13  8:54 ` Indunil Jayasooriya
2006-10-13  8:55 ` Indunil Jayasooriya
2006-12-13 22:07 ` Charlie Meyer
2006-12-13 22:42 ` Grant Taylor

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='01ea01c472b0$e0449ca0$fd01000a@estacion1' \
    --to=soporte@xmundo.net \
    --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.