Linux – Does bonding 3 1G NICs into one make a 3G NIC

bondinglinuxlinux-networkingnetworkingswitch

For example, I have 3 NICs (1GB) and make a bonded NIC. Do I get a 3GB NIC?

Should I connect these 3 NICs into 1 switch? If one NIC dies, do I still have the network between server and switch alive?

Or should I connect each NIC to 3 different switches? So if one NIC or one switch dies, I still have the network alive?

Which mode should I use?

Best Answer

For example, I have 3 NICs(1GB) and make a bond NIC, Do I get a 3GB NIC?

No. You don't. The specific details depend on the hash mode, but typical hash modes distribute individual connections to each member. Even with a round-robin mode only possible between two directly connected Linux systems you will not get the full 3GB, probably more like 2GB.

Should I connect

No idea. We can't make a decision for you. You need to decide if you need fault tolerance or better performance. You need to figure out if your switches allow you to have a link aggregation group that spans switches, this is a pretty high end feature, that usually requires a stack setup.

If you have no idea what you should be doing, perhaps start with a switch-independent mode for fault tolerance only and connect it to multiple switches. This is a really simple setup and would require no config on your switches, but it wouldn't really give you much of a performance boost.

Past that, just try some modes and run some performance tests that reflect your typical load and usage of this system in various configurations. Pick the best one based on your results.

Related Topic