What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Link Aggregation on RT-AC66U?????

Jaybe

New Around Here
Hi my friends, this is my 1st post here on SNB :-) Like i post on my title I have an RT-AC66U with Asuswrt-Merlin 380.59 and I like to use my ReadyNAS RT314 LACP ports. Is there any was I can activate LACP on my router with the Asuwrt on my AC66U. Thanks.
 
# Remove ports 3 and 4 from VLAN 1
robocfg vlan 1 ports "0 1 2 8*"

# Remove VLAN 2
robocfg vlan 2 ports ""

# Create VLAN 3 with port 3 untagged and port 8 tagged
robocfg vlan 3 ports "3 8*"

# Set port 3's default VLAN to 3
et robowr 0x34 0x16 0x03

# Create VLAN 4 with port 4 untagged and port 8 tagged
robocfg vlan 4 ports "4 8*"

# Set port 4's default VLAN to 4
et robowr 0x34 0x18 0x04

# Remove VLAN 13
robocfg vlan 13 ports ""

# Logger Services
logger -t "($(basename ))" $$ SERVICES-START being started....
logger -t "($(basename ))" $$ Bonding ports 3 and 4 commencing....

# Pre-Bonding
robocfg vlan 1 ports "0 1 2 8*"

# Bonding
sleep 2s
modprobe bonding
# Setting mode to 802.3ad
echo 802.3ad > /sys/class/net/bond0/bonding/mode
# Setting LACP rate to fast
echo fast > /sys/class/net/bond0/bonding/lacp_rate
# Setting MII monitoring interval to 50
echo 50 > /sys/class/net/bond0/bonding/miimon

# Setting xmit hash policy to layer3+4
echo 1 > /sys/class/net/bond0/bonding/xmit_hash_policy
ip link set bond0 up
echo +vlan3 > /sys/class/net/bond0/bonding/slaves
echo +vlan4 > /sys/class/net/bond0/bonding/slaves
brctl addif br0 bond0

# Post-Bonding
sleep 2s
brctl stp br0 on

# Pre-Bonding
Sleep 2s
logger -t "($(basename $0))" $$ Bonding Status....
cat /proc/net/bonding/bond0 | sed 's/^/+++ /' | logger

# Step 3 - Create/Edit firewall-start script

# Include the following code in firewall-start script located in /jffs/scripts/ (you will need to create this file from scratch, if you haven't done so already, with the right permissions)
#!/bin/sh

# Bonding IPtables rules
iptables -I INPUT -i vlan3 -j ACCEPT
iptables -I INPUT -i vlan4 -j ACCEPT
iptables -I INPUT -i bond0 -j ACCEPT

# Firewall/IPtables Performance Tweak for Bond0 to be placed right after the above bonding rules and
# before your custom rules - if any.
iptables -D INPUT `iptables --line-numbers -nL INPUT | grep ESTABLISHED | tail -n1 | awk '{print $1}'`

iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# controleer of de slaves goed zijn gekoppeld.
cat /proc/net/bonding/bond0

# Step 4 Show config
cat /sys/class/net/bond0/bonding/slaves
cat /sys/class/net/bond0/bonding/mode
cat /sys/class/net/bond0/bonding/lacp_rate
cat /sys/class/net/bond0/bonding/miimon
robocfg show

If you router is turned off you have te do this again.
 
i also need help. i have lot internet disconnection every day. i have two cables from ISP modem to asus router, one for internet and one for IPTV. i see there they are on the same VLAN ID and maybe have problems with disconnectivity? how to change VLAN ID for LAN3?
nelXH2.png


i have this in robocfg show but i do not know nothing about this numbers....

Code:
admin@RT-AC3200-7180:/tmp/home/root# admin@RT-AC3200-7180:/tmp/home/root# robocf
g show
-sh: admin@RT-AC3200-7180:/tmp/home/root#: not found
admin@RT-AC3200-7180:/tmp/home/root# Switch: enabled
-sh: Switch:: not found
admin@RT-AC3200-7180:/tmp/home/root# Port 0: 1000FD enabled stp: none vlan: 2 ju
mbo: off mac: 64:6e:ea:22:dd:16
-sh: Port: not found
admin@RT-AC3200-7180:/tmp/home/root# Port 1:   DOWN enabled stp: none vlan: 1 ju
mbo: off mac: 00:00:00:00:00:00
-sh: Port: not found
admin@RT-AC3200-7180:/tmp/home/root# Port 2: 1000FD enabled stp: none vlan: 2 ju
mbo: off mac: 64:6e:ea:22:dd:16
-sh: Port: not found
admin@RT-AC3200-7180:/tmp/home/root# Port 3:   DOWN enabled stp: none vlan: 1 ju
mbo: off mac: 00:00:00:00:00:00
-sh: Port: not found
admin@RT-AC3200-7180:/tmp/home/root# Port 4:   DOWN enabled stp: none vlan: 1 ju
mbo: off mac: 00:00:00:00:00:00
-sh: Port: not found
admin@RT-AC3200-7180:/tmp/home/root# Port 8:   DOWN enabled stp: none vlan: 2 ju
mbo: off mac: 00:00:00:00:00:00
-sh: Port: not found
admin@RT-AC3200-7180:/tmp/home/root# VLANs: BCM5301x enabled mac_check mac_hash
-sh: VLANs:: not found
admin@RT-AC3200-7180:/tmp/home/root#    1: vlan1: 1 3 4 5t
-sh: 1:: not found
admin@RT-AC3200-7180:/tmp/home/root#    2: vlan2: 0 2 5
-sh: 2:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1045: vlan1045: 3 8u
-sh: 1045:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1046: vlan1046: 0t 1t 2t 3 4t 5t 7t 8u
-sh: 1046:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1047: vlan1047: 1t 2t 5t 8u
-sh: 1047:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1099: vlan1099: 1t 3t 5 7 8u
-sh: 1099:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1100: vlan1100: 1t 3t 5 7t 8t
-sh: 1100:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1101: vlan1101: 2t 3t 5 7
-sh: 1101:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1102: vlan1102: 1t 2 4 5 8t
-sh: 1102:: not found
admin@RT-AC3200-7180:/tmp/home/root# 1103: vlan1103: 1t 7t 8t
-sh: 1103:: not found
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top