How to config LACP bonding on OpenWrt?

I bonded Gi0/1, Gi0/2, and Gi0/3 into a single LACP interface namely Po1 on the Cisco switch.

cisco(config-if)# interface range Gi0/1-3
cisco(config-if-range)# description Po1_member
cisco(config-if-range)# channel-protocol lacp
cisco(config-if-range)# channel-group 1 mode active
cisco(config-if-range)# interface port-channel 1
cisco(config-if)# flowcontrol receive desired
cisco(config-if)# switchport mode trunk
cisco(config-if)# switchport trunk native vlan 1002

I want to connect my OpenWrt router to the Cisco. How do I bond eth0, eth1, and eth2 into a single logical interface using LACP? I am using x86, so there is no integrated switch involved. The network interfaces are all physical. I am looking for /etc/config/network configurations which survive system reboots instead of generic iproute2 commands.

By the way is there anything on OpenWrt equivalent to flowcontrol receive desired?

Install luci-proto-bonding , there is a bug that you need to set useless IP4 address on bonding master even with LACP.
And disable all flowcontrol. Packet drops are just fine if receiving device cannot cope.

This topic should help.

Most likely with ethtool

ethtool -A eth0 tx on rx on
ethtool -A eth0 autoneg on
ethtool -r eth0

How pausing imcoming packets for up to 4MB helps with congestion? It will just add useless reordering in path.

You better ask the OP for that.

1 Like