First, what is the network card binding and simple principle
Network card binding is also known as "network card bundle", is to use more than a physical network card virtual network card to provide load balancing or redundancy, increase the role of bandwidth. When a NIC is broken, it does not affect the business. The converged device looks like a separate Ethernet interface device, where the network cards have the same IP address and the parallel link is aggregated into a logical link. This technology, known as trunking and EtherChannel technology in network companies such as Cisco, is called bonding in the Linux 2.4.x kernel.
Ii. Classification of technology
1. Load Balancing
For bonding Network Load Balancing is commonly used in file servers, such as the three card, as a piece to use, to solve an IP address, traffic is too large, server network pressure is too big problem. For a file server, such as NFS or a Samba file server, no administrator can solve the problem of network load by making many IP addresses of the intranet's file servers. If in the intranet, file server for the management and application of convenience, mostly with the same IP address. For a local network of hundred m, the network pressure is great, especially for Samaba and NFS servers, when multiple users are using the file server at the same time. In order to solve the same IP address, break the traffic limit, after all, the network cable and network card throughput of the data is limited. If in the case of limited resources, realize Network load balance, the best way is bonding.
2. Network redundancy
For the server, the stability of network equipment is also more important, especially the network card. In production-oriented systems, the reliability of the network card is more important. In the production system, most of the hardware equipment redundancy to provide server reliability and security, such as power. Bonding can also provide redundant support for the NIC. To bind multiple network cards to an IP address, when a network card has physical damage, another network card automatically enabled, and provide normal services, that is: By default, only one network card work, other network card to do backup.
The reality of bonding load balancing and network redundancy technology
1. Network environment
[root@web-31 ~]# cat/etc/issue
CentOS release 6.3 (Final)
Kernel \ R on a \m
[root@web-31 ~]# getconf Long_bi T
[root@web-31 ~]# ip a |grep-v lo
2:em1: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU 1500 Qdisc MQ State Up Qlen 1000
link/ether f0:4d:a2:3e:57:00 brd ff:ff:ff:ff:ff:ff inet 172.28.2.31/24 brd 172.28.2.255
Scope Globa L EM1
3:em2: <BROADCAST,MULTICAST> MTU 1500 Qdisc noop State down Qlen 1000 link/ether
f0:4d:a2:3e:57:02 b Rd FF:FF:FF:FF:FF:FF
4:em3: <BROADCAST,MULTICAST> MTU 1500 Qdisc noop State down Qlen 1000 link/ether
: 4d:a2:3e:57:04 BRD ff:ff:ff:ff:ff:ff
5:em4: <BROADCAST,MULTICAST> MTU 1500 Qdisc noop state down Qlen 1000
link/ether f0:4d:a2:3e:57:06 BRD FF:FF:FF:FF:FF:FF
PS: Use four NIC for bonding binding: EM1, EM2, Em3, EM4
2. Check the bonding environment
The following methods are detected:
[root@web-31 ~]# modinfo bonding |grep bonding.ko
filename: /lib/modules/2.6.32-279.5.2.el6.centos.plus.x86 _64/kernel/drivers/net/bonding/bonding.ko
[root@web-31 ~]# modprobe-l bond*
kernel/drivers/net/bonding/ Bonding.ko