Warning:
The use of direct cable connections without network switches is not supported for bonding.
The failover mechanisms described here will not work as expected without the presence of network switches.
See the Red Hat Knowledgebase article Why is bonding in not supported with direct connection using crossover cables? for more information.
Note:
The active-backup, balance-tlb and balance-alb modes do not require any specific configuration of the switch.
Other bonding modes require configuring the switch to aggregate the links.