Setting up bonding aka nic teaming on Linux Systems

bonding | bonding-lacp

setup

look for options on how to setup the module

modinfo bonding | grep mode
modinfo bonding | grep xmit

see bonding-rr for raw load-balance

see bonding-lacp (preferred) for high-availability done right

additional notes

load-balance algorightm

note default xmit is 0 aka layer2

slackware-specific

    ls -lF /etc/rc.d/rc.modules
    ls -lF /etc/rc.d/rc.modules.local # nothing about bonding
    ls -lF /etc/modprobe.conf         # noexist and DEPRECATED unless forced with -C
    ls -lF /etc/modprobe.d/           # nothing about bonding
    vi /etc/rc.d/rc.inet1

proceed with network setup as usual or as a bridge but against the bond0 interface instead

rhel7-specific

systemctl stop NetworkManager
systemctl disable NetworkManager

cd /etc/sysconfig/network-scripts/
vi ifcfg-bond0

NAME=bond0
DEVICE=bond0
IPADDR=IP_ADDRESS
PREFIX=24
ONBOOT=yes

vi ifcfg-eth0

NAME=eth0
DEVICE=eth0
MASTER=bond0
SLAVE=yes
ONBOOT=yes

same for eth…

tail -F /var/log/messages
systemctl restart network

systems from the past

obsolete way to do things

ifenslave -a
ifenslave bond0 eth0
ifenslave bond0 eth2
ifenslave bond0 eth3

resources

https://www.kernel.org/doc/html/latest/networking/bonding.html

https://www.kernel.org/doc/Documentation/networking/bonding.txt

/usr/src/linux/Documentation/networking/bonding.txt

https://wiki.linuxfoundation.org/networking/bonding

https://community.hpe.com/t5/ProCurve-ProVision-Based/LACP-ProCurve-Linux/td-p/2302966

https://backdrift.org/manage-linux-bonding-without-ifenslave-using-sysfs

https://wiki.mikrotik.com/wiki/Manual:Interface/Bonding

https://linoxide.com/how-tos/ethernet-bonding-on-redhat-linux/

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-using_channel_bonding

https://www.kernel.org/doc/Documentation/networking/bonding.txt

https://wiki.centos.org/TipsAndTricks/BondingInterfaces

http://www.sgvulcan.com/2010/07/20/network-interface-bonding-in-slackware-version-13-1/

https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s3-modules-bonding-directives.html

mtu

Dynamically changing the MTU of a Linux bridge interface https://joshua.hoblitt.com/rtfm/2014/05/dynamically_changing_the_mtu_of_a_linux_bridge_interface/

How to change MTU size for bonding interface ? https://access.redhat.com/solutions/64136

Setting MTU on bonded interface https://access.redhat.com/discussions/1365273

nic bonding and jumbo frames https://www.linuxquestions.org/questions/linux-networking-3/nic-bonding-and-jumbo-frames-4175581455/

troubles

https://unix.stackexchange.com/questions/247375/not-permitted-to-add-eth0-to-bond0 ==> slave if needs to be down


https://www.reddit.com/r/HomeNetworking/comments/4wug9g/cheap_smart_switch_with_lacp/

https://en.wikipedia.org/wiki/Link_aggregation


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun