From: "Alex" <alex@hostingcenter.ro>
To: lartc@vger.kernel.org
Subject: [LARTC] split access 2 uplinks
Date: Fri, 29 Aug 2003 12:13:56 +0000 [thread overview]
Message-ID: <marc-lartc-106215934607050@msgid-missing> (raw)
I have setup split access with load balancing on a router that runs squid
but it appears that the second line it almost empty, the router send packets
trough the second line only from time to time, very rarely adn the mrtg
graphs only show something like 10-16kbit used on that line and instead the
primary line is full all the time. I have setup this only for squid, I don't
do any masqurading for the local net, just web acces via squid proxy server.
What's the remedy for this situation? Why does this happen? If that all I
can do then I have no use for such a setup , it doesn't help me at all.
Thanks,
Alex
Here the script that I use: (192.168.55.1 is another router which actualy
has the second line conected physicaly and on that router I do SNAT for the
squid machine)
IF0="eth1"
IF1="eth2"
IF2="eth0"
IP0="192.168.254.125"
IP1="1.2.3.4"
IP2="192.168.55.2"
P1="1.2.3.1"
P2="192.168.55.1"
P0_NET="192.168.254.0/24"
P1_NET="1.2.3.0/26"
P2_NET="192.168.55.0/24"
#
ip route add 1.2.3.0/26 dev eth2 src 81.196.96.11 table T1
ip route add default via 1.2.3.1 table T1
ip route add 192.168.55.0/24 dev eth0 src 192.168.55.2 table T2
ip route add default via 192.168.55.1 table T2
#
ip route add 1.2.3.0/26 dev eth2 src 1.2.3.4
ip route add 192.168.55.0/24 dev eth0 src 192.168.55.2
ip rule add from 81.196.96.11 table T1
ip rule add from 192.168.55.2 table T2
##ip route add $P0_NET dev $IF0 table T1
ip route add 192.168.55.0/24 dev eth0 table T1
##ip route add 127.0.0.0/8 dev lo table T1
##ip route add $P0_NET dev $IF0 table T2
ip route add 1.2.3.0/26 dev eth2 table T2
##ip route add 127.0.0.0/8 dev lo table T2
#
ip route del default
ip route flush cache
ip route add default scope global nexthop via 1.2.3.1 dev eth2 weight 1
nexthop via 192.168.55.1 dev eth0 weight 1
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-08-29 12:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-29 12:13 Alex [this message]
2003-08-29 20:07 ` [LARTC] split access 2 uplinks Steve Wright
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=marc-lartc-106215934607050@msgid-missing \
--to=alex@hostingcenter.ro \
--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.