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

LACP bonding configuration with tagged VLAN in Red Hat

Leer en espanol
LACP bonding configuration with tagged VLAN 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.

What is a VLAN?

A virtual local area network (VLAN) Virtual Local Area Network ) is a network topology that is configured according to a logical scheme rather than the physical design. Servers in the same VLAN communicate with each other as if they were on a LAN. However, servers in different VLANs cannot communicate freely with each other.

What is the IEEE 802 tropocolo?

The protocol IEEE 802.1Q, also known as dot1Q, was a project of working group 802 of the IEEE to develop a mechanism that allows multiple networks to transparently share the same physical medium, without interference problems between them (Trunking). It is also the current name of the standard established in this project and is used to define the encapsulation protocol used to implement this mechanism in networks. ethernet. All interconnection devices that support VLANs must follow the IEEE 802.1Q standard, which specifies in detail the operation and administration of virtual networks. *Shortest Path Bridging (SPB) Incorporated into IEEE 802.1Q-20141

Configuration of network interfaces:

Bash
cat /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0

ONBOOT=YES

BOOTPROTO=NONE

USERCTL=NO

TYPE=Unknown

BONDING_OPTS=»mode=4 miimon=100″

We configure the VLAN with the interface tagged, to do this we must do it in the following way: ifcfg-<BOND interface name>.<VLAN>

Bash
cat /etc/sysconfig/network-scripts/ifcfg-bond0.10

DEVICE=bond0.10

BOOTPROTO=none

IPADDR=192.168.1.110

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

USERCTL=no

VLAN=yes

ONPARENT=yes

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

NM_CONTROLLED=no

MASTER=bond0

SLAVE=yes

USERCTL=no

We load the module

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

alias netdev-bond0 bonding

options bond0 miimon=100 mode=4 lacp_rate=1

We restart the service

Bash
systemctl restart network.service

:wq!

Comments