kernel-3.16.0-0.rc4.git3.1.fc21.x86_64 systemd-215-5.git7c1cff4.20140714.fc21.x86_64 ********************************************* /etc/systemd/network/bond0mode.netdev [NetDev] Name=bond0 Kind=bond [Bond] Mode=active-backup <- **** bondctl detail bond0 Bonding Master: bond0 Oper State: up Slaves: enp3s0 enp1s9 Active Slave: Mode: balance-rr 0 <- Monitor: No monitoring enabled ***************************************** /etc/modprobe.d/bonding.conf options bonding mode=1 <= ******* bondctl detail bond0 Bonding Master: bond0 Oper State: up Slaves: enp3s0 enp1s9 Active Slave: enp3s0 Mode: active-backup 1 <= Monitor: No monitoring enabled ****** Tested all seven bonding modes of operation: 0 - balance-rr 1 - active-backup 2 - balance-xor 3 - broadcast 4 - 802.3ad 5 - balance-tlb 6 - balance-alb
What is the problem?
Doesn't pick out Mode from .netdev. This works via modprobe i.e. option specified in /etc/modprobe.d/bonding.conf options bonding mode=1 <=
Also does not work with 215-6.git99f9dd8.20140714.
It's not a bug, it's a feature, "man: systemd.netdev - make it clear that we do not touch preexisting netdevs" http://cgit.freedesktop.org/systemd/systemd/commit/?id=7c1cff4 This works with original ifnames, https://bugzilla.redhat.com/attachment.cgi?id=918064
FTR, feature as explained here: http://cgit.freedesktop.org/systemd/systemd/commit/?id=7c1cff4ff7 "We will happily use bridges/bonds as master devices, but we will not change their settings if they were created by someone else."