Hi all first post, woot
I'm no developer, but I thought I'd share
I've got Link Aggregation working
Link Aggregation Wiki Page
Please follow the wiki for the most up to date information
The below is for reference only, is now largely outdated
To use Link Aggregation on RT-AC66U you'll need the following.
1.asuswrt-merlin installed
2.JFFS enabled
3.entware installed
-- entware package ifenslave installed
4.Step 4 is now outdated. starting with firmware version Asuswrt-Merlin 3.0.0.4.374.33 Beta 3 bonding.ko is included in firmware
Script below has been edited to use bonding.ko included in the firmware
old bonding.ko for those who need it http://www.mediafire.com/download/y36nzbntfbk8c25/bonding.ko
(compiled from source at Merlin's Git Repo)
5.set up your services-start script as follows
Note - below example uses port 3 & 4 of switch using 802.3ad (LACP)
LACP will require either a switch or PC that can be configured for LACP
other bonding modes should be possible
6. To check the status of the bond
log into telnet/ssh
credits to RMerlin for the great firmware and to those, who posted before me
particularly these 2 post were very useful
http://forums.smallnetbuilder.com/showthread.php?p=54237
http://forums.smallnetbuilder.com/showthread.php?t=12281
KAD
I'm no developer, but I thought I'd share
I've got Link Aggregation working
Link Aggregation Wiki Page
Please follow the wiki for the most up to date information
The below is for reference only, is now largely outdated
To use Link Aggregation on RT-AC66U you'll need the following.
1.asuswrt-merlin installed
2.JFFS enabled
3.entware installed
-- entware package ifenslave installed
4.Step 4 is now outdated. starting with firmware version Asuswrt-Merlin 3.0.0.4.374.33 Beta 3 bonding.ko is included in firmware
Script below has been edited to use bonding.ko included in the firmware
old bonding.ko for those who need it http://www.mediafire.com/download/y36nzbntfbk8c25/bonding.ko
(compiled from source at Merlin's Git Repo)
5.set up your services-start script as follows
Note - below example uses port 3 & 4 of switch using 802.3ad (LACP)
LACP will require either a switch or PC that can be configured for LACP
other bonding modes should be possible
Code:
# Remove ports 3 and 4 from VLAN 1
et robowr 0x05 0x81 0x01
et robowr 0x05 0x83 0x0D06
et robowr 0x05 0x80 0x0000
et robowr 0x05 0x80 0x0080
# Create VLAN 3 with port 3 untagged and port 8 tagged
et robowr 0x05 0x81 0x03
et robowr 0x05 0x83 0x1108
et robowr 0x05 0x80 0x0000
et robowr 0x05 0x80 0x0080
# Set port 3's default VLAN to 3
et robowr 0x34 0x16 0x03
# Create VLAN 4 with port 4 untagged and port 8 tagged
et robowr 0x05 0x81 0x04
et robowr 0x05 0x83 0x2110
et robowr 0x05 0x80 0x0000
et robowr 0x05 0x80 0x0080
# Set port 4's default VLAN to 4
et robowr 0x34 0x18 0x04
# Create the interfaces
vconfig add eth0 3
vconfig add eth0 4
# Bring up vlans
ifconfig vlan3 up
ifconfig vlan4 up
# Insert bonding module and set parameters
insmod /lib/modules/2.6.22.19/kernel/drivers/net/bonding/bonding.ko mode=4 miimon=100 lacp_rate=1
# Bring up bond0
ifconfig bond0 up
# enslave vlans to bond0
ifenslave bond0 vlan3 vlan4
# Bridge the bond0 allowing AP access
brctl addif br0 bond0
# We allow these VLANs to access the AP
iptables -I INPUT 1 -i vlan3 -j ACCEPT
iptables -I INPUT 1 -i vlan4 -j ACCEPT
iptables -I INPUT 1 -i bond0 -j ACCEPT
log into telnet/ssh
Code:
cat /proc/net/bonding/bond0
particularly these 2 post were very useful
http://forums.smallnetbuilder.com/showthread.php?p=54237
http://forums.smallnetbuilder.com/showthread.php?t=12281
KAD
Last edited: