bonding Fail-over-mac is not passed in the configuration

Sperhead

New Member
Apr 27, 2025
1
0
1
When configuring bonding active-backup via /etc/network/interfaces, the additional parameter bond-fail-over-mac is not applied on the interface. Can you tell me ifupdown2 supports this additional parameter? If not, should we expect an implementation in the future?

Code:
pve-manager/8.3.0/c1689ccb1065a83b (running kernel: 6.8.12-4-pve)

auto enp2s0f2
iface enp2s0f2 inet manual

auto enxf8e43b7a6b88
iface enxf8e43b7a6b88 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves enp2s0f2 enxf8e43b7a6b88
        bond-miimon 100
        bond-mode active-backup
        bond-fail-over-mac active
        bond-primary enxf8e43b7a6b88

auto vmbr0
iface vmbr0 inet static
        address 192.168.10.2/24
        gateway 192.168.10.1
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
 
I found some docs that say the option should be bond-fail_over_mac active, not bond-fail-over-mac active but that didn't work for me. What did work was to set bonding options in /etc/modprobe.d/bonding.conf. For example, I put the following there:

Code:
options bonding max_bonds=1 mode=1 primary_reselect=0 fail_over_mac=1 miimon=250

And I could confirm the options were set by looking at /proc/net/bonding/bond0. Source: https://forums.raspberrypi.com/viewtopic.php?f=28&t=166355&p=1075365&hilit=bond+wlan0#p1075365