November 18

Linux: Bonding – Generic with mode 0

nano /etc/modprobe.d/bond1.conf
alias bond0 bonding
options bond0 mode=0 miimon=100

nano /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.0.4
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=none
TYPE=Bond
BONDING_MASTER=yes
PREFIX=24
DEFROUTE=yes
NAME="Bond bond0"
BONDING_OPTS="mode=active-backup miimon=0 arp_ip_target=192.168.0.2 arp_interval=1000"
LAST_CONNECT=1530826407
NM_CONTROLLED=no

nano /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
TYPE=Bond
BONDING_MASTER=yes
NAME=bond1
ONBOOT=yes
BONDING_OPTS="mode=4 miimon=100"
NM_CONTROLLED=no

Force a failover
ifenslave -c bond0 nic-id

Look at bonding state
cat /proc/net/bonding/bond0


Copyright 2021. All rights reserved.

Posted November 18, 2021 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B