Skip to contentSkip to conversation

Question about Bonding interfaces under Linux

LARTC [email protected] 2 participants 2 messages Feb 27, 2003

lore
Share & tools
lore
#0 lore raw

I have a question about bonding 2 interfaces to 'load-balance' my 2 connections on Internet.
I have 2 differents Providers (and IP class) with dhcp addressing. I tried a lot of things with ip+tc and also iptables, but nothing worked. My question is how to set up my connection to be able to use both interfaces to double my connection speed.

My network is something like :

                                                                 ________
                                          +------------+        /
                                          |            |       |
                            +-------------+ Provider 1 +------- 163.1.x.x
(dhcp)
        __                  |             |            |     /
    ___/  \_         +------+-------+     +------------+    |
  _/        \__      |     eth0     |                      /
 /             \     |              |                      |
| Local network -----+ Linux router |                      |     Internet
 \_           __/    |              |                      |
   \__     __/       |     eth1     |                      \
      \___/          +------+-------+     +------------+    |
                            |             |            |     \
                            +-------------+ Provider 2 +-------  82.18.x.x
(dhcp)
                                          |            |       |
                                          +------------+        \________

Thanks.

Jean-Philippe LE HENAFF
[email protected]

*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.

				********

This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.

*************************************************************************

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Jean-Philippe,

You do not want bonding. Bonding joins together multiple physical interfaces into a single logical interface with the same IP layer characteristics. You have two physical and logical interfaces over which you wish to distribute your outbound traffic.

You want to configure split access load sharing. You will not reach the total aggregate bandwidth for any single connection (download), because each single connection will only be able to take advantage of one of these uplinks. The net effect, however, is that outbound traffic will select one or the other link, spreading the entire load of the client machines across both links.

This split access can be done dynamically (see nano.txt) or statically (see adv-multi-internet.html). In each case, the implementation involves an understanding of the RPDB and use of multiple routing tables.

If you know the packet signature for each type of traffic you wish to send across each link (maybe one is a higher quality connection), then you can configure something like this:

http://linux-ip.net/html/adv-multi-internet.html

If you wish to randomly select a link for each connection, see this:

http://www.linuxvirtualserver.org/~julian/nano.txt

For a general introduction to the topic, see:

http://lartc.org/howto/lartc.rpdb.multiple-links.html

Good luck,

-Martin

: I have a question about bonding 2 interfaces to 'load-balance' my 2 : connections on Internet.
: I have 2 differents Providers (and IP class) with dhcp addressing. : I tried a lot of things with ip+tc and also iptables, but nothing worked. : My question is how to set up my connection to be able to use both : interfaces to double my connection speed.
:
: My network is something like :
:
: ________
: +------------+ /
: | | |
: +-------------+ Provider 1 +------- 163.1.x.x
: (dhcp)
: __ | | | /

 :     ___/  \_         +------+-------+     +------------+    |
 :   _/        \__      |     eth0     |                      /
 :  /             \     |              |                      |
 : | Local network -----+ Linux router |                      |     Internet
 :  \_           __/    |              |                      |
 :    \__     __/       |     eth1     |                      \

: \___/ +------+-------+ +------------+ |
: | | | \
: +-------------+ Provider 2 +------- 82.18.x.x
: (dhcp)
: | | |
: +------------+ \________
:
: Thanks.
:
: Jean-Philippe LE HENAFF
: [email protected]
:
:
:
:
: ************************************************************************* : Ce message et toutes les pieces jointes (ci-apres le "message") sont : confidentiels et etablis a l'intention exclusive de ses destinataires. : Toute utilisation ou diffusion non autorisee est interdite.
: Tout message electronique est susceptible d'alteration.
: La SOCIETE GENERALE et ses filiales declinent toute responsabilite au : titre de ce message s'il a ete altere, deforme ou falsifie.
: ********
: This message and any attachments (the "message") are confidential and : intended solely for the addressees.
: Any unauthorised use or dissemination is prohibited.
: E-mails are susceptible to alteration.
: Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates : shall be liable for the message if altered, changed or falsified. :
: ************************************************************************* :
: _______________________________________________
: LARTC mailing list / [email protected]
: http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
:

Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/