New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

LACP

Good ideas? Share with us!
Post Reply
albert
Posts: 69
Joined: 09 Jul 2007, 14:35
Location: The Netherlands

LACP

Post by albert »

Since the B3 has two GB ports it would be nice to be able to set it up using the webinterface to use the bonding device. The bonding module has several modes, mode 0 for roundrobin and mode 4 for LACP. In that last case of course you need to set up your switch correctly.

Just a thought. Of course one should have an option to get to the B3 in case of a misconfiguration, which would make both GB ports unusable.

Albert
dturpin
Posts: 8
Joined: 15 Oct 2010, 03:01
Location: Sweden

Re: LACP

Post by dturpin »

Old post I know, but I stumbled upon it. Anyway I know that you want to have it configurable over the webgui, but as a proof of concept I actually configured aggregated links on my b3 with LACP a couple of weeks ago.

If I remember correctly I just apt-get ifenslave (or if it was already there), add loading of the bonding module and edited my interfaces. I think I also edited some of b3s config script to have bond0 as LAN, but I don't remember exactly.
On the other end of the bond I have an cisco slm2008 switch.

As you can see I'm running the bond in LACP mode. The hash method was chosen to what I believe my switch is running (the manual doesn't specify the algorithm). I sent a couple of packets through with just changing port, mac-address and ip to see what channel the switch used.
my config

Code: Select all

cat /etc/modules 
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
bonding mode=4 miimon=1000 lacp_rate=0 xmit_hash_policy=layer2

cat /etc/network/interfaces 
auto bond0
iface bond0 inet dhcp
	bond-slaves eth0 eth1
auto lo
iface lo inet loopback
status of interface

Code: Select all

ifconfig
bond0     Link encap:Ethernet  HWaddr 00:22:02:00:23:b8  
          inet addr:192.168.81.3  Bcast:192.168.81.255  Mask:255.255.255.0
          inet6 addr: fe80::222:2ff:fe00:23b8/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:84238 errors:0 dropped:1 overruns:0 frame:0
          TX packets:80694 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:10630879 (10.1 MiB)  TX bytes:10197872 (9.7 MiB)

eth0      Link encap:Ethernet  HWaddr 00:22:02:00:23:b8  
          UP BROADCAST RUNNING SLAVE  MTU:1500  Metric:1
          RX packets:44251 errors:0 dropped:1 overruns:0 frame:0
          TX packets:42673 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5540707 (5.2 MiB)  TX bytes:5468788 (5.2 MiB)
          Interrupt:11 

eth1      Link encap:Ethernet  HWaddr 00:22:02:00:23:b8  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:39987 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38021 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5090172 (4.8 MiB)  TX bytes:4729084 (4.5 MiB)
          Interrupt:15 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)


cat /proc/net/bonding/bond0 
Ethernet Channel Bonding Driver: v3.7.0 (June 2, 2010)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0

802.3ad info
LACP rate: slow
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
	Aggregator ID: 2
	Number of ports: 2
	Actor Key: 17
	Partner Key: 3
	Partner Mac Address: 00:22:6b:24:2f:f2

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:22:02:00:23:b8
Aggregator ID: 2
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:22:02:00:23:b9
Aggregator ID: 2
Slave queue ID: 0
Post Reply