NB: Sent this again with a revised diagram. Sorry.

Hello All,

Remember when I said all my load balancing questions were thought
experiments?

Well they are about to get real...

I'm gonna show this diagram first. This is the network myself and Alex
intend to build for Alex and his neighbour.

|----------HOUSE NUMBER 1--------| |----------HOUSE NUMBER 2-------|
|                                | |
    PPP0 (ADSL link 1)           | |              PPP0 (ADSL link 2)
     |                           | |               |
|----------|        |----------| | |            |----------|
| Bering 1 |--ETH1--| 22Mb WAP | | | WIFI-NIC0--| Bering 2 |--ETH0-\
|----------|        |----------| | |            |----------|       |
     |                           | |                               |
    ETH0                         | |                               |
     |                           | | |-------------|       ooooooooo
oooooooooooo                     | | | WiFi Laptop |       o LAN 2 o
o LAN 1    o                     | | |-------------|       ooooooooo
oooooooooooo                     | |
                                 | |
                                 | |
---------------------------------| |---------------------------------
Right, some explanation.

The default route for everything will be the "Bering 1" box.

Bering 1 will have this in it's Networking script (not sure where in it
though)

ip route add equalize default \
   nexthop via ADSL1-IP dev PPP0 \
   nexthop via ADSL2-IP dev ETH1

And I'm gonna set it all to the same Class C subnet.
Now, I'm not sure how to set up Bering 2.

Everything that comes in ETH0, must be routed to Bering 1.
Anything that comes from Bering 1, must be NAT'ed behind PPP0.

I realise that this will be a fairly wasteful load on the Wireless link,
not sure what I can do about that.

UNLESS.

If I set the default route for House1 to Bering1 and House2 to Bering2
Can I put this in the networking script of Bering 2?

ip route add equalize default \
   nexthop via ADSL2-IP dev PPP0 \
   nexthop via ADSL1-IP dev WIFI-NIC0

(I don't know what linux calls wireless NICs.)

If anybody can see some big holes or oversights, feel free to point,
laugh and advise.

Good fun this init? :)

Oh, and I have no clue what I'm going to do with shorewall, any
suggestions for security?

Thanks,

James.

-----Original Message-----
From: Steve Wright [mailto:[EMAIL PROTECTED] 
Sent: 11 September 2003 23:15
To: James Neave
Cc: LEAF-USER
Subject: Re: [leaf-user] Load balancing.

On Fri, 2003-09-12 at 01:43, James Neave wrote:
> Hello all,
> 
> First of, my definition of Load Balancing is 2 or more Modems in a
> machine and both are used to connect to a network or ISP, increasing
the
> maximum possible bandwidth.
> 
> A friend asked me a question.
> 
> Is it possible to load balance two ADSL connections? One is his, one
is
> his neighbours. Two PCs, Two ADSL modems and a WAP connected to one of
> the gateway machines and a wireless NIC in the other.


yes, you may balance on the basis of connection, or on the basis of
packet.  In fact, you may do any type of
routing/balancing/unidirectional/bidirectional thing you might like to
do.

The following will route each *packet* out a different port.

ip route add equalize default \
   nexthop via DSL1-IP dev eth1 \
   nexthop via DSL2-IP dev eth1


If you remove the word "equalize", then it will send each alternate tcp
stream out each port.

DSLn-IP are the addresses of your DSL connections, and eth1 is the
assumed local interface pointing at your DSL modems.


please report your success and/or problems with this, so I may amend
etc.


/steve




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to