What is LACP?
LACP Link Aggregation (IEEE 802.3ad)
Virtual link aggregation, also called trunking, is a Layer 2 feature, which joins physical ports on the network into a single high-bandwidth data link; In this way, bandwidth capacity is increased and redundant and highly available links are created. If one link fails, the load is redistributed among the remaining links, so operation is continuous. Thanks to the distributed multilink trunking capability, the failure or removal of one stack unit will not cause an entire trunk to go down.
Configuration of network interfaces:
BOND0
cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
TYPE=Unknown
IPADDR=192.168.0.229
NETMASK=255.255.255.0
GATEWAY=192.168.0.225
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS=»miimon=100 mode=4″Configuration of physical interfaces:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
USERCTL=no
cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
USERCTL=noModule configuration:
cat /etc/modprobe.d/bonding.conf
alias netdev-bond0 bonding
options bond0 miimon=100 mode=4 lacp_rate=1If this configuration does not work, try the following:
cat /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bond0 miimon=100 mode=4 lacp_rate=1We restart the network service:
systemctl restart network.serviceIf it doesn't work, we can try to restart or see the module configuration in case there is an error.
Restart module:
modprobe -r bondingVerify module configuration:
modinfo bondingAll the best.
Comments