Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Bonding configuration with LACP in Red Hat

Leer en espanol
Bonding configuration with LACP in Red Hat

Table of contents

LACP Link Aggregation (IEEE 802.3ad) Virtual link aggregation, also called trunking, is a layer 2 feature that joins physical ports on the network into a single link. ===

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

Bash
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:

Bash
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=no

Module configuration:

Bash
cat /etc/modprobe.d/bonding.conf

alias netdev-bond0 bonding

options bond0 miimon=100 mode=4 lacp_rate=1

If this configuration does not work, try the following:

Bash
cat /etc/modprobe.d/bonding.conf

alias bond0 bonding

options bond0 miimon=100 mode=4 lacp_rate=1

We restart the network service:

Bash
systemctl restart network.service

If it doesn't work, we can try to restart or see the module configuration in case there is an error.

Restart module:

text
modprobe -r bonding

Verify module configuration:

text
modinfo bonding

All the best.

Comments