Trying to figure out how to set the primary slave on an active-backup setup.
From what I have read I should be able to simply set bond_primary and it should work but it doesn't seem to. Does anyone know how to achieve this? I want one nic in the active-backup setup to be primary at all times when it is connected. This should be quite simple.
Code:
root@tapecephhost2:~# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None <--------- There has to be a way to set this?
Currently Active Slave: eth2
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth2
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:36:9f:4e:b7:50
Slave queue ID: 0
Slave Interface: eth4
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:36:9f:52:16:c0
Slave queue ID: 0
From what I have read I should be able to simply set bond_primary and it should work but it doesn't seem to. Does anyone know how to achieve this? I want one nic in the active-backup setup to be primary at all times when it is connected. This should be quite simple.