Linux virtual network interface – bond

Latest reply: Sep 11, 2019 01:14:03 121 2 3 0

Linux virtual network interface – bond

 

1. Definition of bond

Generally, bonding is to bind multiple physical network interfaces to make them run like a network interface. The bonding technology implements network port redundancy and load balancing, achieving high availability and reliability. Enterprise Linux allows administrators to bind multiple network interfaces to a channel by using a bonding kernel module and a special network interface called a channel bonding interface. According to the selected binding mode, channel binding, two or more network interfaces are used as a network interface, thereby increasing bandwidth and/providing redundancy.

 

2. How to set up a bond to implement link aggregation?

First, we need the hosts of two virtual NICs,

bond 1

 

Like this, there are two virtual NICs eth0 and eth1.

 

Before the experiment, delete all the configured IP addresses to maintain a pure environment.

As shown in the following figure.

 bond 2

 

[root@desktop20 Desktop]# nmcli connection add con-name bond0 ifname bond0 type bond mode active-backup ip4 172.25.254.20/24 ## set upbond0

[root@desktop20 Desktop]# watch -n 1 cat /proc/net/bonding/bond0 ## Surveillance

bond 3

 

[root@desktop20 Desktop]# nmcli connection add con-name eth0 ifname eth0 type bond-slave master bond0 ## Add eth0 to bond0.

[root@desktop20 Desktop]# nmcli connection add con-name eth1 ifname eth1 type bond-slave master bond0 ## Add eth1 to bond0.

 bond 4

test

 

[root@desktop20 Desktop]# ifconfig eth0 down


bond 5

 

[root@desktop20 Desktop]# ifconfig eth0 up


 bond 6

 


  • x
  • convention:

DeMarcia
Created Sep 10, 2019 09:53:32 Helpful(0) Helpful(0)

Nice sharing.
  • x
  • convention:

Hike
Admin Created Sep 11, 2019 01:14:03 Helpful(0) Helpful(0)

Thanks for your sharing.
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login