I work for IT at Michigan Technological University and we wanted to
have our systems here always use a primary card if it is up, only
using the secondary when necessary. I made some modifications to
bonding.c to implement BOND_MODE_PRIORITY which *should* always use
the first working slave in the bond list (when using mii monitoring).
I have only been able to test with two devices (all we need it to work
I've attached the modified source. (Its an older version of bonding.)
The three changes I made are:
1) call change_active_interface when a link comes back up in the
2) have change_active_interface to start at the first node in the
circular list rather then the current one
3) make sure BOND_MODE_PRIORITY otherwise behaves like
Distributed Computing Services
Michigan Technological University
Get latest updates about Open Source Projects, Conferences and News.