Linux multi-NIC binding aggregation link-bond technology

Source: Internet
Author: User

Linux Multi-NIC binding aggregation link-bond technology

first, the theoretical part

By bundling multiple Linux network ports into one, you can improve the performance of your network, such as backing up a server that requires you to back up several T data in one night , which can be a serious bottleneck if you use a single gigabit network port. Other applications, such as FTP servers and high-load download sites , have similar problems. So use Linux teaming or bond to bind multiple network cards as a logical network port, configure a single IP address, Greatly increases the server's network throughput (I/O).
the multi-NIC binding feature of Linux is used in the kernel " Bonding"module, refer to this module forLinux Ethernet Bonding DriverDocument, but the current release of variousLinuxThis module is already included in the version kernel, and in most cases it is not necessary to recompile the kernel. Linuxof theBondingThe driver provides a binding/Integrated(Bond)multiple NICs are a function of a virtual logical network port. And note that the network port of the binding(Bonded)There are multiple modes of operation; Generally, it is divided into hot standby(hot standby)and load Balancing(Load balancing).in theRedhat/fedoraand other classesRedhat Linuxis relatively easy to configure.

second, the operation part

1. First create the bond0 configuration file

# vi/etc/sysconfig/network-scripts/ifcfg-bond0

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9B/52/wKioL1lht4KwNhrlAAC7DTOAjlM158.png "style=" float : none; "title=" Image 1.png "alt=" Wkiol1lht4kwnhrlaac7dtoajlm158.png "/>

2. Modify The configuration files of the eth0 and eth1 thatare bound

# VI m /etc/sysconfig/network-scripts/ifcfg-eth0

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9B/52/wKiom1lht4KQqQ_uAACDLunt_Oo124.png "style=" float : none; "title=" Image 2.png "alt=" Wkiom1lht4kqqq_uaacdlunt_oo124.png "/>

The ifcfg-eth1 configuration file is the same, but the DEVICE value is changed to eth1 .

3. Load bond module Drive

Edit /etc/modprobe.conf or /etc/modules.conf file, add the following content to enable the system to load bonding module driver

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9B/52/wKiom1lht4OjonrtAAEaD7Nv-wA176.png "style=" float : none; "title=" Image 3.png "alt=" Wkiom1lht4ojonrtaaead7nv-wa176.png "/>

4. Add the following statement to the/etc/rc.d/rc.local file to enable the system to run automatically

# Vim /etc/rc.d/rc.local

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9B/52/wKioL1lht4SQVlpxAADZ63MJc1k794.png "style=" float : none; "title=" Image 4.png "alt=" Wkiol1lht4sqvlpxaadz63mjc1k794.png "/>

5 , detect, verify configuration

First execute the command to load the bonding module: # modprobe Bonding

Restart the Network Service and confirm that bond0 starts correctly: # Service Network Restart

Verify that the device is loaded correctly: # less/proc/net/bonding/bond0

To View network card status: # ifconfig

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9B/52/wKioL1lht4XTb9xMAAClCdA3VrI735.png "style=" float : none; "title=" Image 5.png "alt=" Wkiol1lht4xtb9xmaaclcda3vri735.png "/>


This article from "Duyuheng" blog, declined reprint!

Linux multi-NIC binding aggregation link-bond technology

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.