For the server, network equipment Stability is also more important, especially the network card. In a production-type system, the reliability of the NIC is even more important. Multiple NICs are bound to an IP address, and when a network card is physically damaged, another NIC is automatically enabled and provides normal service That is: By default, only one network card works, the other network cards do backup network card provides redundancy support. |
High-efficiency overlay network transfer rate, load balancing
For Network Load Balancing is what we commonly used in the file server, such as the three network card, as a piece to use, to solve an IP address, traffic is too large, the server network pressure is too large problem.
for file servers, such as NFS or samba file servers, none of the administrators can solve the network load by making a number of IP addresses for the intranet's file servers. If in the intranet, the file server for management and application convenience, mostly with the same IP address. For a hundred m local network, the network pressure is great, especially for Samaba and NFS servers, in cases where the file server is used by multiple users at the same time. In order to solve the same IP address, break the limit of traffic, after all, network cable and network card to the data throughput is limited. Implement Network Load Balancing in the case of limited resources.
650) this.width=650; "class=" Alignnone size-full wp-image-9241 "src=" http://www.linuxprobe.com/wp-content/uploads/ 2016/04/%e7%bd%91%e5%8d%a1.jpg "alt=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Width=" "height=" "title=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Style=" vertical-align:middle;height:auto;margin:10px auto; "/>
Operation steps:
1. First set up 2 network cards for the virtual machine:
650) this.width=650; "class=" Alignnone size-full wp-image-9236 "src=" http://www.linuxprobe.com/wp-content/uploads/ 2016/04/%e6%b7%bb%e5%8a%a0%e7%bd%91%e5%8d%a1.png "alt=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Width=" 554 "height=" 361 "title=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Style=" vertical-align:middle;height:auto;margin:10px auto; "/>
2. Shut down the NetworkManager in the system:
650) this.width=650; "class=" Alignnone size-full wp-image-9237 "src=" http://www.linuxprobe.com/wp-content/uploads/ 2016/04/%e5%85%b3%e9%97%adnetworkmanager%e6%9c%8d%e5%8a%a1.png "alt=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Width=" 663 "height=" 225 "title=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Style=" vertical-align:middle;height:auto;margin:10px auto; "/>
3. Edit File/etc/modprobe.d/dist.conf Add alias bond0 bonding:
650) this.width=650; "class=" Alignnone size-full wp-image-9238 "src=" http://www.linuxprobe.com/wp-content/uploads/ 2016/04/%e7%bc%96%e8%be%91%e7%bd%91%e5%8d%a1%e7%bb%91%e5%ae%9a%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6.png "alt=" Linux system Multi-NIC binding combat. Linux system Multi-NIC binding combat. "Width=" 739 "height=" 221 "title=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Style=" vertical-align:middle;height:auto;margin:10px auto; "/>
4. Modify the Ifcfg-eth0 ifcfg-eth1 in/etc/sysconfig/network-scripts and create the BOND0:
650) this.width=650; "class=" Alignnone size-full wp-image-9239 "src=" http://www.linuxprobe.com/wp-content/uploads/ 2016/04/%e5%88%9b%e5%bb%babond0.png "alt=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Width=" 689 "height=" 207 "title=" Linux system multi-NIC binding combat. Linux system Multi-NIC binding combat. "Style=" vertical-align:middle;height:auto;margin:10px auto; "/>
Miimon refers to how long it takes to check the network once, in MS (MS)
Mode=0: Balanced load mode, both NICs are working, load balanced.
Mode=1: Automatic master and Standby mode, where a network card is working (if eth0 is broken off)
Automatically switches to another block network card (eth1 for backup) experimental results:
1. Restart the network. Service network restart, or computer.
2. Ping the Nic-bound host with another virtual machine.
3, any ipdown any card, network communication is not affected.
Linux system Multi-NIC binding combat.