Jump to content

How is priority within a bond0 handled ?


Recommended Posts

I have a bond0 configured that consists out of 3 network interfaces in an active-backup setup:

 

eth0 and eth1 are the regular nic's on my motherboard (1G)

eth2 is a Mellanox SFP+ 10G connection to my switch

 

Since this is an active-backup setup only one should be active, how is priority of the NIC's decided within a bond ?  Does the system do this on its own ?

 

Is active-backup the best bonding type I can choose ?  Since my NIC's are unbalanced (one beiing 10G and two 1G) I think that mode-0 would not be beneficial since the 1G's would be used in some cases...  Would mode 5 balance-tlb be something I could use ?

 

Also: Can unavailability of a NIC be notified in some way ?  Otherwise all nic's within the bond could gradually and unnoticed die off untill the last one dies and the connection is gone..

Link to comment
14 minutes ago, Helmonder said:

Since this is an active-backup setup only one should be active, how is priority of the NIC's decided within a bond ?

NIC's are chosen by their sequence definition in the bonded interface, which is normally eth0, eth1, eth2, etc ...

 

15 minutes ago, Helmonder said:

Is active-backup the best bonding type I can choose ?

Yes, the general advice is use active-backup mode when interfaces differ in speed (focus is on availability), and use a balanced mode when all interfaces are equal (focus is on performance)

 

18 minutes ago, Helmonder said:

Also: Can unavailability of a NIC be notified in some way ?

On the Dashboard you can see which interfaces are up or down

Link to comment
2 minutes ago, bonienl said:

NIC's are chosen by their sequence definition in the bonded interface, which is normally eth0, eth1, eth2, etc ...

 

Yes, the general advice is use active-backup mode when interfaces differ in speed (focus is on availability), and use a balanced mode when all interfaces are equal (focus is on performance)

 

On the Dashboard you can see which interfaces are up or down

 

Thanks for this !

 

My 10G is now eth2 so I should switch that with the eth0 1G then... Correct ?

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...