1 What is NIC binding
Bind multiple network cards to the same IP address to provide services to the outside, can achieve high availability or load balancing. It is not possible to set the same IP address directly for two NICs. Through bonding, a virtual one network card to provide external connection, the physical network card is modified to the same MAC address
2 NIC Binding classification
There are seven modes for dual NIC bindings under Linux operating system. Now the general enterprise will use dual-card access, so that both the network bandwidth can be added, while the corresponding redundancy can be said to be a lot of benefits. And the general enterprise will use the Linux operating system comes with the network card binding mode, of course, now the network card manufacturers will also be some for the Windows operating system network card management software to do network card binding (Windows operating system does not have a network card binding feature requires third-party support). To get to the point, Linux has seven types of NIC binding mode: 0. Round robin,1.active-backup,2.load Balancing (XOR), 3.fault-tolerance (broadcast), 4.LACP, 5.transmit load balancing, 6. Adaptive load Balancing
3 Setting up NIC Bindings
(1)
#创建bond0配置文件 vim/etc/sysconfig/network-scripts/ifcfg-bond0 #bond0文件内容DEVICE=bond0ipaddr= 172.18. 254.252
Prefix=16
bonding_opts="minmon=0 mode=0" #mode后边跟对应的绑定模式
(2) Create a bond profile corresponding to two network cards respectively
Device= "eth0" #文件名网卡名DEVICE值保持相同, remaining unchanged master=bond0slave=yes
(3) Restart Network Service
Service Network restart
(4) Edit the boot script to bind the eth0 and eth1 NIC
Complete the configuration.
Linux NIC Bindings