Got it

Linux virtual network interface – bond

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

Hello, dear!

Good day to you!

In this post, I will introduce the Linux virtual network interface – bond.

 

What is 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.


How to set up a bond to implement link aggregation

First, we need the hosts of two virtual NICs.


bond

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


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

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


bond



[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


[root@desktop20 Desktop]# ifconfig eth0 down


bond


[root@desktop20 Desktop]# ifconfig eth0 up


bond



Hope you can learn about it!

Nice sharing.
View more
  • x
  • convention:

Thanks for your sharing.
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.