Bonding is a combination of many links of network cards in the server for higher speed as well as a backup plan when a network card has a problem.
mục lục
- Install Bonding
- Step 1: install Bonding by command
- Step 2: Check the successful installation of Bonding using the command
- Step 3: Create a configuration file for bond0 with the command
- Step 4: Configure the file ifcfg-bond0
- Step 5: There are 2 network cards, respectively ens33 ens36, configure the ens33 network card to enter the configuration file using the command
- Step 6: Configure the ens33 . network card
- Step 7: Go to the ens36 network card configuration file using the command
- Step 8: Configure the ens36 . network card
- Step 9: Restart the network service with the command
- Step 10: Check the installed bonding with the command
- Conclusion
Install Bonding
Step 1: install Bonding by command
modprobe –first-time bonding
![]()
Step 2: Check the successful installation of Bonding using the command
lsmod | grep “bonding”
![]()
Step 3: Create a configuration file for bond0 with the command
vi / etc / sysconfig / network-scripts / ifcfg-bond0
![]()
Step 4: Configure the file ifcfg-bond0
+ Mode = 0 : balance-rr
+ mode = 1 : active – backup
+ mode = 2 : balance – xor
+ mode = 3 : broadcast
+ mode = 4 : 802.3ad
+ mode = 5 : balance – tlb
+ mode = 6 : balance – alb

Step 5: There are 2 network cards, respectively ens33 ens36, configure the ens33 network card to enter the configuration file using the command
vi / etc / sysconfig / network-scripts / ifcfg-ens33
![]()
Step 6: Configure the ens33 . network card
DEVICE = ens33
TYPE = Ethernet
ONBOOT = yes
BOOTPROTO = none
NM_CONTROLLED = no
MASTER = bond0
SLAVE = yes

Step 7: Go to the ens36 network card configuration file using the command
vi / etc / sysconfig / network-scripts / ifcfg-ens36
![]()
Step 8: Configure the ens36 . network card
DEVICE = ens36
TYPE = Ethernet
ONBOOT = yes
BOOTPROTO = yes
NM_CONTROLLED = no
MASTER = bond0
SLAVE = yes

Step 9: Restart the network service with the command
service network restart

Step 10: Check the installed bonding with the command
cat / proc / net / bonding / bond0

Conclusion
We have just completed the basic installation and use of bonding steps, here we can provide network redundancy options for the server, or load balance for the network, depending on usage needs.


Tiếng Việt