Manually Creating a Lacp Connection in Linux
First you need to create a bond interface with the required type of balancing. I’m using 802.3ad
If your machine has the ifenslave
package, then you are very lucky.
Through managers (/etc/network/interfaces
or systemd-networkd
or something else) it will start without any problems, if you do not forget about loading the module into the kernel.
In my case, this package is not there, and you need a network to install it
We do this using the classic method - by hand)
ip link add bond0 type bond0 mode 802.3ad
ip link set down dev eth0
ip link set eth0 master bond0
ip link set up dev eth0
ip link set down dev eth1
ip link set eth0 master bond0
ip link set up dev eth1
ip link set up dev bond0
Если ip link add bond0
doesn’t work, you can do it through the kernel
modprobe bonding mode=4
Well, then you can put the required address on the interface.