Multi-nic binding in Linux

Source: Internet
Author: User

Multi-nic binding in Linux
GuideFor servers, the stability of network devices is also important, especially the network card. In production systems, the reliability of NICS is even more important.
Bind multiple network adapters to one IP address. When one network adapter is physically damaged, the other network adapter is automatically enabled and provides normal services.
That is, by default, only one network card works, and other network cards back up the network card to provide redundancy support.

Efficient overlay network transmission rate and load balancing

We often use network load balancing in file servers. For example, we use three NICs as one to solve the problem of an IP address, heavy traffic, and heavy server network pressure.

For file servers, such as NFS or SAMBA file servers, no administrator can solve the network load problem by creating multiple IP addresses of file servers on the Intranet. In the Intranet, most file servers use the same IP address for ease of management and application. For a M local network, when multiple users use the file server at the same time, the network pressure is extremely high, especially SAMABA and NFS servers. In order to solve the same IP address and break through traffic restrictions, after all, the network cable and network adapter have limits on data throughput. If you have limited resources, you can achieve network load balancing.

Procedure:
1. First set two NICs for the VM:

2. Disable NetworkManager in the system:

3. Edit the/etc/modprobe. d/dist. conf file and add alias bond0 bonding:

4. Modify the ifcfg-eth0 ifcfg-eth1 in/etc/sysconfig/network-scripts and create bond0:

Miimon indicates how long it takes to check the network. The unit is ms (milliseconds)
Mode = 0: Load Balancing mode. Both NICs are working and load balancing is enabled.
Mode = 1: Automatic Master/Slave mode. One network adapter is working (if eth0 is disconnected)

The system automatically switches to another network card (backup of eth1). Experiment Result:

1. restart the network. service network restart, or the computer.
2. Use another virtual machine to ping the host bound to the NIC.
3. Any ipdown of any NIC will not affect network communication.



This article Reprinted from: http://www.linuxprobe.com/

Free to provide the latest Linux technology tutorial books, for open source technology enthusiasts to do more and better: http://www.linuxprobe.com/

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.