Network Bonding

Going from a one interface setup, to two bonded:

Before:

nano /etc/systemd/network/25-wired.network
[Match]
Name=eno1

[Network]
Address=172.20.20.2/24
Gateway=172.20.20.1

Create the netdev bond file /etc/systemd/network/25-bond1.netdev.

nano /etc/systemd/network/25-bond1.netdev
[NetDev]
Name=bond1
Kind=bond

#default is "balance-rr" (round robin)
[Bond]
#Mode="balance-rr

Create network for bond.

nano /etc/systemd/network/25-bond1.network

Select interfaces.

Restart network:

Check if functional:

Before:

After:

Note: systemd automatically creates bond0, it can be ignored.

Status:

Note: DNS using systemd-resolved config in /etc/systemd/resolved.conf

References

https://kerlilow.me/blog/setting-up-systemd-networkd-with-bonding/#setting-up-the-bond https://www.freedesktop.org/software/systemd/man/systemd.netdev.html https://www.reversengineered.com/2014/08/21/setting-up-bonding-in-systemd/

Last updated