Configure Network Bonding

(short help)

 

Display network devices

nmcli device

Delete existing network connections (all ethernet devices listed by above command)

nmcli connection delete enp1s0

(not sure as follow:)

nmcli connection modify enp1s0 ipv4.method disabled

BOND

Add a new bonding device [bond0] (any name you like)
refer to the description above for each mode (OK to specify with mode number for [mode=*] where * is from 0 to 6)

nmcli connection add type bond ifname bond0 con-name bond0 bond.options "mode=*"

Add member devices to the bonding device (all ethernet devices)

nmcli connection add type ethernet ifname enp1s0 master bond0

Boond with no no IP address

nmcli connection modify boond0 ipv4.method disabled

Display all connections

nmcli connection

Activate bonding

nmcli con up bond0

Verify bonding state

cat /proc/net/bonding/bond0

BRIDGE

nmcli con add ifname br0 type bridge con-name br0

nmcli con add type bridge-slave ifname bond0 master br0

nmcli connection show

Bridge IP parameters:

IP address

nmcli connection modify br0 ipv4.addresses 10.0.0.30/24

Gateway

nmcli connection modify br0 ipv4.gateway 10.0.0.1

DNS

nmcli connection modify br0 ipv4.dns "10.0.0.10 10.0.0.11"

Searching domain

nmcli connection modify br0 ipv4.dns-search "srv.world"

Ending sets

nmcli connection down br0 && nmcli connection up br0

nmcli connection modify br0 ipv4.method manual