Using systemd network for bond, vlan and bridge static interfaces on Fedora
Links
systemd docs
- http://www.freedesktop.org/software/systemd/man/systemd-networkd.html
- http://www.freedesktop.org/software/systemd/man/systemd.network.html
- http://www.freedesktop.org/software/systemd/man/systemd.netdev.html
- http://www.freedesktop.org/software/systemd/man/systemd.link.html
- http://www.freedesktop.org/software/systemd/man/systemd-networkd-wait-online.service.html
blogs etc
- http://fedoramagazine.org/build-network-router-firewall-fedora-22-systemd-networkd/
- https://major.io/2015/08/21/using-systemd-networkd-with-bonding-on-rackspaces-onmetal-servers/
- https://github.com/coreos/bugs/issues/298#issuecomment-143335399
Appendices
Bonding driver configuration
Add the following to the file '/etc/modprobe.d/bonding.conf
' so that the bond driver doesn't create a bond0 interface with a default round-robin configuration.
# systemd-networkd won't change bond options (such as mode) if the bond already exists [1].
# This is confusing if we want to configure a bond0 since the kernel
# automatically creates a bond0 netdev as soon as the bonding module is loaded.
# This means systemd-networkd won't apply our preferred config.
#
# Therefore prevent the kernel from automatically creating a bond0 interface [2].
# This allows systemd-networkd to create the bond0 with appropriate options.
#
# [1] https://bugzilla.redhat.com/show_bug.cgi?id=1119347
# [2] http://lists.freedesktop.org/archives/systemd-devel/2015-March/029041.html
#
options bonding max_bonds=0