Networking Forums

Networking Forums > Computer Networking > Linux Networking > Load Balancing with Multi-path Routes

Reply
Thread Tools Display Modes

Load Balancing with Multi-path Routes

 
 
John Sinclair
Guest
Posts: n/a

 
      04-30-2004, 02:21 PM
Greetings,

I'm trying to set up some sort of load-balancing on a Linux (Trustix)
gateway by using multipath routes, however I'm stuck with some problems.

The idea is that this gateway (odd as it may seem) only has one external
interface, which should route packets to two different gateways (Ciscos).
The gateway's external interface and the routers are all on the same
network, so this is a slightly different set up than the one described
in Linux Adv Routing HOWTO.

I successfully defined the multipath route, with two equal cost routes.
However, it doesnt matter how much traffic I generate on the gateway
(using many simultaneous wgets in mirror mode), it doesnt seem to distribute
the load among the two gateways, always using only one of them. I tried
both using and not using equalize, with the same result. I was carefull
to flush the route cache between each attempt.

Has anyone tried a similar setup (single interface + two gateways)? Is
this the proper way of doing such set up? Considering both routers are
on the same network of the gateway's external ínterface (and I cannot
change that), would there be any other alternative? Would I absolutely
need Julian Anastasov's patches for that matter?

Here's how my routing table looks like (IPs changed to protect the innocent):

js@virtual ~$ ip route show
198.X.Y.0/24 dev eth0 proto kernel scope link src 198.X.Y.1
127.0.0.0/8 dev lo scope link
default
nexthop via 198.X.Y.2 dev eth0 weight 1
nexthop via 198.X.Y.3 dev eth0 weight 1
js@virtual ~$

Any help would be greatly appreciated!

Regards,
John Sinclair

 
Reply With Quote
 
 
 
 
Nils
Guest
Posts: n/a

 
      05-02-2004, 06:58 PM
iptables can do load balancing!

nils

John Sinclair wrote:

> Greetings,
>
> I'm trying to set up some sort of load-balancing on a Linux (Trustix)
> gateway by using multipath routes, however I'm stuck with some problems.
>
> The idea is that this gateway (odd as it may seem) only has one external
> interface, which should route packets to two different gateways (Ciscos).
> The gateway's external interface and the routers are all on the same
> network, so this is a slightly different set up than the one described
> in Linux Adv Routing HOWTO.
>
> I successfully defined the multipath route, with two equal cost routes.
> However, it doesnt matter how much traffic I generate on the gateway
> (using many simultaneous wgets in mirror mode), it doesnt seem to distribute
> the load among the two gateways, always using only one of them. I tried
> both using and not using equalize, with the same result. I was carefull
> to flush the route cache between each attempt.
>
> Has anyone tried a similar setup (single interface + two gateways)? Is
> this the proper way of doing such set up? Considering both routers are
> on the same network of the gateway's external ínterface (and I cannot
> change that), would there be any other alternative? Would I absolutely
> need Julian Anastasov's patches for that matter?
>
> Here's how my routing table looks like (IPs changed to protect the innocent):
>
> js@virtual ~$ ip route show
> 198.X.Y.0/24 dev eth0 proto kernel scope link src 198.X.Y.1
> 127.0.0.0/8 dev lo scope link
> default
> nexthop via 198.X.Y.2 dev eth0 weight 1
> nexthop via 198.X.Y.3 dev eth0 weight 1
> js@virtual ~$
>
> Any help would be greatly appreciated!
>
> Regards,
> John Sinclair
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
load balancing Alberto Brivio Windows Networking 1 08-22-2006 07:48 PM
Equal Cost Multi Path on kernel 2.6 bolero92@yahoo.com Linux Networking 0 07-05-2006 09:34 AM
NIC Load Balancing Ben Windows Networking 7 08-05-2004 06:58 PM
Load Balancing Phil Andersen Windows Networking 2 04-15-2004 08:16 PM
FTP Load Balancing Windows Networking 0 01-27-2004 02:13 AM



1 2 3 4 5 6 7 8 9 10 11