Re: Interface bonding

2009-11-30 Thread Pete Graner
On Sat, Nov 28, 2009 at 05:16:29AM -0430, Santiago Zarate wrote:
> Hi!, actually i have few days trying out how to enable interface bonding 
> (http://linux-ip.net/html/ether-bonding.html) 
> on one of my networks, i actually have only two ethernet interfaces... one is 
> a direct line from the ISP (Adsl), and the 
> other one is inside my network, so the router is another machine... (Pretty 
> much the same i guess)
> 
> What i want... is my server A, load balance both links... this network is not 
> a big one (only 80 Users... ) but on 
> another one... (another building) i've got arround 700 users... and 7 ADSL 
> lines...  and there would be a really big 
> difference if we could load balance at least 3 links... 

You want load balancing not bonding. I wrote up how I did this with 2x
DSL lines on my blog:

http://blog.redvoodoo.org/2009/08/policy-based-routing-over-2-dsl-lines.html

Hope it helps.

~pete
-- 
Pete Graner 
Manager 
Ubuntu Kernel Team  
Canonical Ltd.  http://www.canonical.com/

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: Interface bonding

2009-11-28 Thread Nick Fox
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am not sure I follow all of this, but here goes with my attempt:

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)

iEYEARECAAYFAksREFIACgkQopeNYDWxTNhdnACgqA5/GvrgotlAmzRtyFvooYpI
PakAn0NQWMBTj/86CWRj0v09EI3zZpi5
=do6y
-END PGP SIGNATURE-

On Sat, Nov 28, 2009 at 3:46 AM, Santiago Zarate  wrote:
> Hi!, actually i have few days trying out how to enable interface bonding 
> (http://linux-ip.net/html/ether-bonding.html)
> on one of my networks, i actually have only two ethernet interfaces... one is 
> a direct line from the ISP (Adsl), and the
> other one is inside my network, so the router is another machine... (Pretty 
> much the same i guess)

Bonding Interfaces gives them a single virtual IP interface. This
means that you cannot connect them to two seperate networks. as
suggested here. You can use routing and so on through another device
to interconnect between the two networks (ADSL -> LAN), but direct
connection as being done with two separate NICs is not possible when
they become bonded.

As for a good document on exactly how to accomplish the Interface
bonding, I highly suggest this:
https://help.ubuntu.com/community/UbuntuBonding

>
> What i want... is my server A, load balance both links... this network is not 
> a big one (only 80 Users... ) but on
> another one... (another building) i've got arround 700 users... and 7 ADSL 
> lines...  and there would be a really big
> difference if we could load balance at least 3 links...
>
> I've been working with many guides i've found on the internet... about 
> ifenslave and stuff... but none has worked yet...
> tough...
>
> I've seen also balance (http://www.inlab.de/balance.html) but is not what i 
> need...
>
> also... as a side note... when i configure my bond0 device... i dont have any 
> idea of what to use as a gateway...
> since... the server A should be going to be the new router... at least for 
> testing
>

As for gateways, the way I generally handle this with multiple WAN
links is to pick a primary WAN link (usually the known best link
[fastest/best uptime/ect]), and the router (server in your case) gets
that WAN (ADSL) link's gateway as the default gateway. Then for each
additional link to be load balanced (not to be confused with bonded,
bonding and load balancing are two very different things) you pick any
order and set a route with the same metric as the default gateway on
the router and create a rule similar to: source address - 0.0.0.0 ->
destination address - 0.0.0.0,  gateway - , interface -
.

> I'd like some advices here... if anyone has some ideas... before trying 
> something like this:
> http://www.firewall.cx/ftopicp-15193.html (Imagine that with... 4 links at 
> least xD)
>
> Thanks in advance!
>
> --
> Santiago Zarate
> santiago...@ubuntu.com
> (+58) 4129864175
> (+58) 4241073905
>
> --
> ubuntu-server mailing list
> ubuntu-server@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam
>

Hope this helps!

-Nick

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: Interface bonding

2009-06-19 Thread James Dinkel
On Thu, Jun 18, 2009 at 6:53 AM, Soren Hansen  wrote:

>
>
> That is the recommended way to set up bonded interfaces. If it does not
> work as intended, that's a bug we need to fix. Can you file a bug on
> Launchpad about your problems?
>
> --
> Soren Hansen |
> Lead Virtualisation Engineer | Ubuntu Server Team
> Canonical Ltd.   | http://www.ubuntu.com/
>


Thanks for the attention given to my bug report.  I'll try those changes.  I
guess I probably always used 'slaves all' just because I'm lazy :D

James
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: Interface bonding

2009-06-19 Thread Serge van Ginderachter
2009/6/18 Serge van Ginderachter 

> 2009/6/18 Soren Hansen 
>
>> On Thu, Jun 18, 2009 at 11:43:18AM +0200, Serge van Ginderachter wrote:
>> > I have been following https://help.ubuntu.com/community/UbuntuBonding
>> > to set up a bond of two network interfaces, and it seems to me this
>> > documentatuoin has certain flaws.
>>
>> You are quite right in your observations. Could you be pursuaded to
>> update the documentation accordingly?
>
>
> Certainly, that's what I planned to do when and if I got confirmation.
>

Done.


Met vriendelijke groet,

Serge van Ginderachter
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: Interface bonding

2009-06-18 Thread James Dinkel
On Thu, Jun 18, 2009 at 6:53 AM, Soren Hansen  wrote:

>
> That is the recommended way to set up bonded interfaces. If it does not
> work as intended, that's a bug we need to fix. Can you file a bug on
> Launchpad about your problems?
>
>

I've set up bonded interfaces and always had consistent results with the
"slaves eth0 eth1" method (plus a few other settings).  However, it would
not work AT ALL when I tried to add vlans on top of a bonded interface.  I
filed a bug about it here: https://bugs.launchpad.net/ubuntu/+bug/352384 ,
but you'll see it has gotten zero attention, so good luck if you file a bug
report.

I wonder though, if I use pre-up entries to create the bond device, maybe
then it would work with vlans...

James
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

RE: Interface bonding

2009-06-18 Thread Andrew Hodgson
Soren Hansen wrote:

>On Thu, Jun 18, 2009 at 11:14:03AM +0100, Andrew Hodgson wrote:
>> I originally had the line:
>> post-up ifenslave bond0 eth0 eth1
>> replaced with:
>> slaves eth0 eth1
 
>> However did not get consistent operations.

>That is the recommended way to set up bonded interfaces. If it does not work 
>as intended, that's a >bug we need to fix. Can you file a bug on Launchpad 
>about your problems?

I will see if I can build up a test machine next week for this.

Thanks.
Andrew.

-- 
allpay achieved PCI DSS and ISO 27001 certification in 2008
Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88.

Telephone: 0844 225 5729, Fax: 0844 557 8350. 
Website: www.allpay.net Email: enquir...@allpay.net

This email, and any files transmitted with it, is confidential and intended 
solely for the use of the individual or entity 
to whom it is addressed. If you have received this email in error please notify 
the allpay Information Security 
Manager at the number above.


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: Interface bonding

2009-06-18 Thread Soren Hansen
On Thu, Jun 18, 2009 at 11:14:03AM +0100, Andrew Hodgson wrote:
> I originally had the line:
> post-up ifenslave bond0 eth0 eth1
> replaced with:
> slaves eth0 eth1 
> 
> However did not get consistent operations.

That is the recommended way to set up bonded interfaces. If it does not
work as intended, that's a bug we need to fix. Can you file a bug on
Launchpad about your problems?

-- 
Soren Hansen | 
Lead Virtualisation Engineer | Ubuntu Server Team
Canonical Ltd.   | http://www.ubuntu.com/


signature.asc
Description: Digital signature
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: Interface bonding

2009-06-18 Thread Serge van Ginderachter
2009/6/18 Soren Hansen 

> On Thu, Jun 18, 2009 at 11:43:18AM +0200, Serge van Ginderachter wrote:
> > I have been following https://help.ubuntu.com/community/UbuntuBonding
> > to set up a bond of two network interfaces, and it seems to me this
> > documentatuoin has certain flaws.
>
> You are quite right in your observations. Could you be pursuaded to
> update the documentation accordingly?


Certainly, that's what I planned to do when and if I got confirmation.



Met vriendelijke groet,

Serge van Ginderachter
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: Interface bonding

2009-06-18 Thread Soren Hansen
On Thu, Jun 18, 2009 at 11:43:18AM +0200, Serge van Ginderachter wrote:
> I have been following https://help.ubuntu.com/community/UbuntuBonding
> to set up a bond of two network interfaces, and it seems to me this
> documentatuoin has certain flaws.

You are quite right in your observations. Could you be pursuaded to
update the documentation accordingly?

-- 
Soren Hansen | 
Lead Virtualisation Engineer | Ubuntu Server Team
Canonical Ltd.   | http://www.ubuntu.com/


signature.asc
Description: Digital signature
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

RE: Interface bonding

2009-06-18 Thread Andrew Hodgson
Hi,

I have several servers using the bond configuration on 8.04.  I found the most 
effective way to enable this was to do the modprobe configuration (though the 
URL you posted has better instructions than I did), then I make the following 
in the interfaces file:

auto bond0
iface bond0 inet static
   address 10.10.10.10
   netmask 255.255.255.0
   gateway 10.10.10.1
   post-up ifenslave bond0 eth0 eth1

I originally had the line:
post-up ifenslave bond0 eth0 eth1
replaced with:
slaves eth0 eth1 

However did not get consistent operations.

I am using mode 1 for all teams.

Thanks.
Andrew.

-Original Message-
From: ubuntu-server-boun...@lists.ubuntu.com 
[mailto:ubuntu-server-boun...@lists.ubuntu.com] On Behalf Of Serge van 
Ginderachter
Sent: 18 June 2009 10:43
To: ubuntu-server
Subject: Interface bonding

Hi all,


I have been following https://help.ubuntu.com/community/UbuntuBonding
to set up a bond of two network interfaces, and it seems to me this
documentatuoin has certain flaws.

No problem with the Module Alias Configuration. AFAIK this
configuration will already make sure that the bonding module is probed
and loaded. I then have some remarks on the interface configuration
part.

* loading and unloading the module through pre-up and post-down
statements is not necessary, as the loading already happens in de
modproe.d config, and might even be unwanted in tha case were one has
multiple bonds configured, which would (try to) unload the module
after bringing one bond down, whilst it still being in use for another
one.
* configuring the bond  (ifenslave bond0 eth1 eth2) in the (post-)up
statements didn't work for me: it seemed (post-)up happens after
configuring an ip, but at that time the bond is not configured yet,
and configuring the ip results in an error. I'm not totally sure if
this is eneral logical behaviour or if I just messed something up at
one point in my config trial and error.
* finally, this howto does not mention the by far easier method
explained in /usr/share/doc/ifenslave-2.6/README.Debian: it's just
enough to use the "slaves eth0 eth1" in the iface bond0 stanza


It might be interesting to have those remarks reviewed, to check if my
evaluation is correct.



 Met vriendelijke groet,

 Serge van Ginderachter

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

-- 
allpay achieved PCI DSS and ISO 27001 certification in 2008
Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88.

Telephone: 0844 225 5729, Fax: 0844 557 8350. 
Website: www.allpay.net Email: enquir...@allpay.net

This email, and any files transmitted with it, is confidential and intended 
solely for the use of the individual or entity 
to whom it is addressed. If you have received this email in error please notify 
the allpay Information Security 
Manager at the number above.


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: Interface bonding

2009-06-18 Thread Giorgio Zarrelli
Hi,

the problems resides in the outdated documentation which does not contains
the new infos on how to bond interfaces. I have not with me my configs, so
I can't send you and in few hours I will leave for holydays. Anyway,
google around and you will find the new configs.

Giorgio



> Hi all,
>
>
> I have been following https://help.ubuntu.com/community/UbuntuBonding
> to set up a bond of two network interfaces, and it seems to me this
> documentatuoin has certain flaws.
>
> No problem with the Module Alias Configuration. AFAIK this
> configuration will already make sure that the bonding module is probed
> and loaded. I then have some remarks on the interface configuration
> part.
>
> * loading and unloading the module through pre-up and post-down
> statements is not necessary, as the loading already happens in de
> modproe.d config, and might even be unwanted in tha case were one has
> multiple bonds configured, which would (try to) unload the module
> after bringing one bond down, whilst it still being in use for another
> one.
> * configuring the bond  (ifenslave bond0 eth1 eth2) in the (post-)up
> statements didn't work for me: it seemed (post-)up happens after
> configuring an ip, but at that time the bond is not configured yet,
> and configuring the ip results in an error. I'm not totally sure if
> this is eneral logical behaviour or if I just messed something up at
> one point in my config trial and error.
> * finally, this howto does not mention the by far easier method
> explained in /usr/share/doc/ifenslave-2.6/README.Debian: it's just
> enough to use the "slaves eth0 eth1" in the iface bond0 stanza
>
>
> It might be interesting to have those remarks reviewed, to check if my
> evaluation is correct.
>
>
>
>  Met vriendelijke groet,
>
>  Serge van Ginderachter
>
> --
> ubuntu-server mailing list
> ubuntu-server@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam
>



-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam