Configuring bond0

Hi, hopping to find some help with an error configuring Bonding (link aggregation).

I installed kmod-bonding package, but having some problems to add the slaves.

in terminal:

root@LEDE:~# cat /sys/class/net/bonding_masters
bond0

root@LEDE:~# cat /sys/devices/virtual/net/bond0/bonding/mode
802.3ad 4

root@LEDE:~# echo "+eth0" > /sys/class/net/bond0/bonding/slaves
-ash: write error: Operation not permitted

Can someone help me set the slaves?

Maybe eth0 is still part of the br-lan bridge? Try brctl delif br-lan eth0 before enslaving it.