Through the network port bonding (bond) technology, network port redundancy and load balancing can be easily implemented to achieve high-availability load balancing.
[root@localhost ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \
on an \\m
[root@localhost ~]# echo "alias netdev- Bond0 bonding" >/etc/modprobe.d/bonding.conf
This command is required before the NIC is bound to add the module loaded at server startup.
Modify the new NIC bond bond0 configuration file [root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 TYPE=Ethernet ONBOOT=yes BOOTPROTO=static USERCTL=no PEERDNS =yes IPV6INIT=no IPADDR=112.25.xx.xx NETMASK=255.255.255.192 BROADCAST=112.25.xx.xx GATEWAY=112.25.xx.xx BONDING_OPTS="miimon=80 mode=6"
miimon Yes The time interval for link monitoring is milliseconds. miimon=80 means that the link connection status is monitored every 80ms. If one line fails, it will be transferred to another line.
mode=0 means load balancing mode, both network cards work, need to be supported by the switch
mode=1 means redundant mode, the network card only has one work, one problem enables another < Br>
mode=6 means load balancing mode, both network cards work, no switch is needed for support
What I am doing here is the binding of four network cards, the server is Dell R720, the default name of the NIC is em1--em4. When the NIC is bound, the configuration of the four NICs is basically similar. The master needs to be defined as bond0, and all four NICs are slave
Restart the server
Then check the NIC binding information
[root@localhost ~]# ifconfig bond0 Link encap:Ethernet HWaddr F8:BC:12:38:BF:04 inet addr:112.25.xx.17 Bcast:112.25.xx .63 Mask:255.255.255.192 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:198948 errors:0 dropped:0 overruns:0 frame:0 TX packets:374418 errors:0 dropped:0 overruns:0 carrier:0 Collisions: 0 txqueuelen: 0 RX bytes: 20790024 (19. 8 MiB) TX bytes:29577760 (28.2 MiB) em1 Link encap:Ethernet HWaddr F8:BC:12:38:BF:04 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:36838 errors:0 dropped:0 overruns :0 frame:0 TX packets:123885 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3250190 (3.0 MiB) TX bytes:12842300 (12.2 MiB) Interrupt:35 em2 Link encap: Ethernet HWaddr F8:BC:12:38:BF:05 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:88178 errors:0 dropped:0 overruns:0 frame:0 TX packets:87303 errors:0 dropped:0 Overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11017650 (10.5 MiB) TX bytes:6243968 (5.9 MiB) Interrupt:38 em3 Link encap:Ethernet HWaddr F8:BC:12:38:BF:06 UP BROADCAST RUNNING SLAVE MULTICAST MTU: 1500 Metric: 1 RX packets:37044 errors:0 dropped:0 overruns:0 frame:0 TX packets:81803 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes: 3274966 (3.1 MiB) TX bytes: 5272322 (5.0 MiB) Interrupt: 34 em4 Link encap: Ethernet HWaddr F8:BC:12:38:BF:07 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:36888 errors:0 dropped:0 overruns:0 frame:0 TX packets:81427 errors:0 dropped:0 Overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3249218 (3.0 MiB) TX bytes:5219170 (4.9 MiB) Interrupt:36 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU: 16436 Metric: 1 RX packets: 1 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 1 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 0 RX bytes: 99 ( 99.0 b) TX bytes: 99 (99.0 b)
Command Introduction Shutdown, poweroff, reboot, halt, init can be shut down, approximate
VNC (Virtual Network Computing) is an abbreviation of virtual network computer. VNC is an excellent
How to install JDK graphic parsing in Ubuntu, for many friends who dont know how to operate,
Logging is very important for security. It records the various things that happen every day in the s
What cleaning work must be done after installing the win7 system?
How does CentOS use CD-ROM to add and remove programs
How to use the slmgr command under Win10 system
Smart ABC solution can not be used under VISTA
How to solve the problem of mutual access between XP system and Win7 system
What should I do if the USB flash drive is popped up when Win7 pops up the USB flash drive?
Foxmail account setup tips: add a new account