I followed the steps to create a dynamic network failover from @Ingo (Dynamic failover setup on my Raspberry Pi 3 running on Debian Buster. I can see that under the bonding status, the currently active slave is my eth0 interface, but unless I down the wlan0 interface, the Pi still connect over wifi.
The bonding seems to work since when I down the eth0 instead, the currently active slave switch to wlan0, the issue being when both interfaces are up, it connects over wifi even if the bonding says that it is on eth0.
So far, I tried with either DHCP and Static IP with no luck in changing that behavior. Did I miss something to force the Pi to use the wired connection first?
Here is the output I have from
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: fault-tolerance (active-backup) Primary Slave: eth0 (primary_reselect always) Currently Active Slave: eth0 MII Status: up MII Polling Interval (ms): 500 Up Delay (ms): 1000 Down Delay (ms): 1000 Slave Interface: eth0 MII Status: up Speed: 100 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: b8:27:eb:fa:af:1e Slave queue ID: 0 Slave Interface: wlan0 MII Status: up Speed: Unknown Duplex: Unknown Link Failure Count: 0 Permanent HW addr: b8:27:eb:af:fa:4b Slave queue ID: 0
But even if it says that the Currently Active Slave is eth0, my router says that it is currently connected on WiFi. I have to down the wlan0 in order for it to connect to the eth0.
This is what I have running
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000 link/ether ae:96:51:5a:10:17 brd ff:ff:ff:ff:ff:ff 3: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether ae:96:51:5a:10:17 brd ff:ff:ff:ff:ff:ff inet 192.168.0.105/24 brd 192.168.0.255 scope global dynamic bond0 valid_lft 6817sec preferred_lft 6817sec inet6 fe80::ac96:51ff:fe5a:1017/64 scope link valid_lft forever preferred_lft forever 4: wlan0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000 link/ether ae:96:51:5a:10:17 brd ff:ff:ff:ff:ff:ff
Thanks for your help!