sh -xv /LinkAgg 3 4 >> /path/LinkAgg.log 2>&1
xx@RT-AC66U:/tmp/mnt/sda1# ./LinkAgg -s
--- Bond Errors ---
--- Bond Status ---
Bond Status: bond0 UP
Bridge to WAN Status: Member of br0=bond0
Slave 1 Status: vlan=vlan3 Link=UP Port=3
Slave 2 Status: vlan=vlan4 Link=UP Port=4
xx@RT-AC66U:/tmp/mnt/sda1#
robocfg vlan 1 ports "1 2 8t"
robocfg vlan 3 ports "3 8t"
robocfg vlan 4 ports "4 8t"
vconfig add eth0 3
vconfig add eth0 4
echo 802.3ad > /sys/class/net/bond0/bonding/mode
echo fast > /sys/class/net/bond0/bonding/lacp_rate
ip link set bond0 up
echo 100 > /sys/class/net/bond0/bonding/miimon
echo +vlan3 > /sys/class/net/bond0/bonding/slaves
echo +vlan4 > /sys/class/net/bond0/bonding/slaves
brctl addif br0 bond0
iptables -I INPUT 1 -i vlan3 -j ACCEPT
iptables -I INPUT 1 -i vlan4 -j ACCEPT
iptables -I INPUT 1 -i ${1} -j ACCEPT
ip link show
Check2=$(ip link show | grep "$CHECKVLAN1" | cut -d '<' -f 2 | grep -o UP)
if [ "$Check2" != "UP" ]; then
admin@RT-AC68R:/tmp/home/root# modprobe bonding
admin@RT-AC68R:/tmp/home/root# robocfg vlan 1 ports "1 2 8t"
admin@RT-AC68R:/tmp/home/root# robocfg vlan 3 ports "3 8t"
admin@RT-AC68R:/tmp/home/root# robocfg vlan 4 ports "4 8t"
admin@RT-AC68R:/tmp/home/root# vconfig add eth0 3
admin@RT-AC68R:/tmp/home/root# vconfig add eth0 4
admin@RT-AC68R:/tmp/home/root# echo 802.3ad > /sys/class/net/bond0/bonding/mode
admin@RT-AC68R:/tmp/home/root# echo fast > /sys/class/net/bond0/bonding/lacp_rate
admin@RT-AC68R:/tmp/home/root# ip link set bond0 up
admin@RT-AC68R:/tmp/home/root# echo 100 > /sys/class/net/bond0/bonding/miimon
admin@RT-AC68R:/tmp/home/root# echo +vlan3 > /sys/class/net/bond0/bonding/slaves
admin@RT-AC68R:/tmp/home/root# echo +vlan4 > /sys/class/net/bond0/bonding/slaves
admin@RT-AC68R:/tmp/home/root# brctl addif br0 bond0
admin@RT-AC68R:/tmp/home/root# iptables -I INPUT 1 -i vlan3 -j ACCEPT
admin@RT-AC68R:/tmp/home/root# iptables -I INPUT 1 -i vlan4 -j ACCEPT
admin@RT-AC68R:/tmp/home/root# iptables -I INPUT 1 -i bond0 -j ACCEPT
admin@RT-AC68R:/tmp/home/root# ip link show
1: lo: <LOOPBACK,MULTICAST,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:01:36:1f:e4:5a brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 74:d0:2b:65:29:f0 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 74:d0:2b:65:29:f4 brd ff:ff:ff:ff:ff:ff
5: vlan1@eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 74:d0:2b:65:29:f0 brd ff:ff:ff:ff:ff:ff
6: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether 74:d0:2b:65:29:f0 brd ff:ff:ff:ff:ff:ff
7: tun21: <NO-CARRIER,POINTOPOINT,MULTICAST,NOARP,PROMISC,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 100
link/none
8: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 00:01:36:1f:e4:5a brd ff:ff:ff:ff:ff:ff
9: vlan3@eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc noqueue master bond0 state UP
link/ether 00:01:36:1f:e4:5a brd ff:ff:ff:ff:ff:ff
10: vlan4@eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc noqueue master bond0 state UP
link/ether 00:01:36:1f:e4:5a brd ff:ff:ff:ff:ff:ff
admin@RT-AC68R:/tmp/home/root#
9: vlan3@eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc noqueue master bond0 state UP
I got link aggregation working between my Synology DS412+ (running DSM 4.3-3810) and my Asus RT-N66U (running 3.0.0.4.374.34 (Merlin build))
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!