ethernet bonding on 10.04.2 LTS

Chris Scheller schelcj at pobox.com
Sat Mar 12 13:52:57 UTC 2011


On 2011-03-07, jurgen.depicker at let.be <jurgen.depicker at let.be> wrote:
> This is a multipart message in MIME format.
> --===============6770416122371812255==
> Content-Type: multipart/alternative; boundary="=_alternative 00404C3FC125784C_="
>
> This is a multipart message in MIME format.
> --=_alternative 00404C3FC125784C_=
> Content-Type: text/plain; charset="ISO-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hi all.
>
> On ubuntu 10.04, contrary to what is posted on=20
> https://help.ubuntu.com/community/UbuntuBonding , my bond refuses to come=20
> up after reboot if I don't at least create the=20

i had to apply this simple patch to the /etc/network/if-pre-up.d/ifenslave
script for ifenslave.

https://bugs.launchpad.net/ubuntu/lucid/+source/ifenslave-2.6/+bug/482419/comments/28

and my interfaces file looks like this:

iface eth0 inet static
iface eth1 inet static
iface eth2 inet static
iface eth3 inet static

auto bond0
iface bond0 inet static
        hwaddress ether 84:2B:2B:07:08:9C
        address 10.0.0.11
        netmask 255.255.255.0
        slaves eth0 eth1 eth2 eth3
        bond-mode 4
        bond-miimon 100



> /etc/modprobe.d/bonding.conf file with one line in it:
> alias bond0 bonding
>
> My /etc/network/interfaces looks as follows:
>
> # The primary network interface
> #auto eth0
> #iface eth0 inet dhcp
>
> ###Adapter bonding for eth0 and eth1
> auto bond0
> iface bond0 inet static
> address 172.16.1.11
> netmask 255.255.0.0
> gateway 172.16.1.1
> dns-nameservers 172.16.1.2
> post-up ifenslave bond0 eth0 eth1
> pre-down ifenslave -d bond0 eth0 eth1
> bond=5Fmode 4  #802.3ad
> bond=5Fmiimon 100
> bond=5Flacp=5Frate 1
>
>
> I tried both bond-mode 4 and bond=5Fmode 802.3ad , but as you can see=20
> underneath, it's always round-robin:
> root at VLET1:~# cat /proc/net/bonding/bond0
> Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
>
> Bonding Mode: load balancing (round-robin)
> MII Status: up
> MII Polling Interval (ms): 0
> Up Delay (ms): 0
> Down Delay (ms): 0
>
> Slave Interface: eth0
> MII Status: up
> Link Failure Count: 0
> Permanent HW addr: 00:15:17:31:3d:ac
>
> Slave Interface: eth1
> MII Status: up
> Link Failure Count: 0
> Permanent HW addr: 00:15:17:31:3d:ad
>
> What am I doing something wrong?
>
> Met vriendelijke groeten/Kind regards/Meilleures salutations,
> J=FCrgen Depicker
> --=_alternative 00404C3FC125784C_=
> Content-Type: text/html; charset="ISO-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
><font size=3D2 face=3D"sans-serif">Hi all.</font>
><br>
><br><font size=3D2 face=3D"sans-serif">On ubuntu 10.04, contrary to what is
> posted on </font><a href=3Dhttps://help.ubuntu.com/community/UbuntuBonding>=
><font size=3D2 face=3D"sans-serif">https://help.ubuntu.com/community/Ubuntu=
> Bonding</font></a><font size=3D2 face=3D"sans-serif">
> , my bond refuses to come up after reboot if I don't at least create the
></font><tt><font size=3D3>/etc/modprobe.d/bonding.conf</font></tt><font siz=
> e=3D2 face=3D"sans-serif">
> file with one line in it:</font>
><br><tt><font size=3D3>alias bond0 bonding<br>
></font></tt>
><br><tt><font size=3D3>My /etc/network/interfaces looks as follows:</font><=
> /tt>
><br>
><br><tt><font size=3D3># The primary network interface</font></tt>
><br><tt><font size=3D3>#auto eth0</font></tt>
><br><tt><font size=3D3>#iface eth0 inet dhcp</font></tt>
><br>
><br><tt><font size=3D3>###Adapter bonding for eth0 and eth1</font></tt>
><br><tt><font size=3D3>auto bond0</font></tt>
><br><tt><font size=3D3>iface bond0 inet static</font></tt>
><br><tt><font size=3D3>address 172.16.1.11</font></tt>
><br><tt><font size=3D3>netmask 255.255.0.0</font></tt>
><br><tt><font size=3D3>gateway 172.16.1.1</font></tt>
><br><tt><font size=3D3>dns-nameservers 172.16.1.2</font></tt>
><br><tt><font size=3D3>post-up ifenslave bond0 eth0 eth1</font></tt>
><br><tt><font size=3D3>pre-down ifenslave -d bond0 eth0 eth1</font></tt>
><br><tt><font size=3D3>bond=5Fmode 4  #802.3ad</font></tt>
><br><tt><font size=3D3>bond=5Fmiimon 100</font></tt>
><br><tt><font size=3D3>bond=5Flacp=5Frate 1</font></tt>
><br>
><br>
><br><font size=3D2 face=3D"sans-serif">I tried both bond-mode 4 and bond=5F=
> mode
> 802.3ad , but as you can see underneath, it's always round-robin:</font>
><br><font size=3D2 face=3D"sans-serif">root at VLET1:~# cat /proc/net/bonding/=
> bond0</font>
><br><font size=3D2 face=3D"sans-serif">Ethernet Channel Bonding Driver: v3.=
> 5.0
> (November 4, 2008)</font>
><br>
><br><font size=3D2 face=3D"sans-serif">Bonding Mode: load balancing (round-=
> robin)</font>
><br><font size=3D2 face=3D"sans-serif">MII Status: up</font>
><br><font size=3D2 face=3D"sans-serif">MII Polling Interval (ms): 0</font>
><br><font size=3D2 face=3D"sans-serif">Up Delay (ms): 0</font>
><br><font size=3D2 face=3D"sans-serif">Down Delay (ms): 0</font>
><br>
><br><font size=3D2 face=3D"sans-serif">Slave Interface: eth0</font>
><br><font size=3D2 face=3D"sans-serif">MII Status: up</font>
><br><font size=3D2 face=3D"sans-serif">Link Failure Count: 0</font>
><br><font size=3D2 face=3D"sans-serif">Permanent HW addr: 00:15:17:31:3d:ac=
></font>
><br>
><br><font size=3D2 face=3D"sans-serif">Slave Interface: eth1</font>
><br><font size=3D2 face=3D"sans-serif">MII Status: up</font>
><br><font size=3D2 face=3D"sans-serif">Link Failure Count: 0</font>
><br><font size=3D2 face=3D"sans-serif">Permanent HW addr: 00:15:17:31:3d:ad=
></font>
><br>
><br><font size=3D2 face=3D"sans-serif">What am I doing something wrong?</fo=
> nt>
><br>
><br><font size=3D2 face=3D"sans-serif">Met vriendelijke groeten/Kind regard=
> s/Meilleures
> salutations,</font>
><p><font size=3D2 color=3D#808080 face=3D"Arial"><b>J=FCrgen Depicker</b></=
> font>
> --=_alternative 00404C3FC125784C_=--
>
>
> --===============6770416122371812255==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>


-- 
Chris Scheller | http://www.pobox.com/~schelcj | JID: schelcj at jabber.avlug.org 
------------------------------------------------------------------------------
There are no games on this system.





More information about the ubuntu-server mailing list