Load Balancing with Multi-path Routes

From: John Sinclair (me_at_home.now)
Date: 04/30/04


Date: 30 Apr 2004 07:21:59 -0700

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



Relevant Pages

  • Re: VPN and remote gateway
    ... > It seems you use the wrong route add command. ... > when the VPN connection is established. ... > | using the remote network as my gateway. ...
    (microsoft.public.windows.server.sbs)
  • Re: Persistent Route ignored on W2K when destination network is unavailable
    ... a global setting like the gateway to a particular subnet should be set ... this network access the internet via a NAT firewall (connected to ... via a WAN link. ... route on the Cisco firewall so that any traffic to the internet gets ...
    (microsoft.public.win2000.networking)
  • Re: AIX 1.3 Failures and Fables
    ... DESTINATION GATEWAY FLGS REFCNT USE INTERFACE ... Is my interpretation of the AIX 1.3 #man route correct? ... Manually manipulates the routing tables. ... Is the destination host or network. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: AD-DNS-DHCP
    ... If I do NOT remove the gateway configurationfrom my DHCP ... scope but add route command to my logon script, ...
    (microsoft.public.windows.server.active_directory)
  • Re: AD-DNS-DHCP
    ... Ipconfig will show a second default gateway. ... You could set a metric for the additional gateway, or you could run Route Delete 0.0.0.0 first, ... "Jorge Silva" wrote in message ... If I do NOT remove the gateway configurationfrom my DHCP scope but add route command to my logon script, which one will ultimately prevail, the DHCP gateway configuration or the route add command in the logon script? ...
    (microsoft.public.windows.server.active_directory)