I'm trying to get a bond between the onboard eth0 and an edimax EW-7811Un working on raspbian. So far I installed ifenslave-2.6 and tried like a million different configurations. The best achievement was with DHCP set on the bond, but when I pull the ethernet cable, the wlan0 won't take over but the bond0 fails - even after reconnecting the cable.
My target would be eth0 und wlan0 with static ip in activ-backup an balance-rr mode, since I need it for an HA project.
I have a Raspberry PI running raspbian with an USB Wifi Dongle and an ethernet cable connected. Furthermore I have an asus rt-n66u router connected to the pi, which has an DHCP server running. So I'd like to have an active-backup and/or balance-rr bond with these two interfaces. Reason is I'm currently doing a project on high availability.
So in the normal state I'd like to have the ethernet connection up, in case of an error (or me pulling the cable) I'd like to have a smooth failover to the wlan0 interface.
I'd thought a static IP would be easier for the router, but it didn't work out with static. The closest I came to what it want was a working bond with DHCP adress, but as soon as I pulled the cable the failover to wlan0 didn't work.
Right now I'm thinking my router may be confused when the same IP (and MAC) comes from ethernet first and within a second from wifi.
I hope this made the whole situation i little bit more easy to understand.