As we all know, Linux provides a powerful server function, but the server is very high on the link requirements, at least require 7*24 is connected. But once our server network card problem, or link problem, in this case, the server will not be normal access. Is there any way we can eliminate this phenomenon? The answer is yes, we can do Bond 1. The principle is that the server has two network cards, the two network cards bundled into a bond1, the common one IP address, when the main network card failure, another backup card immediately enabled.
Next, I'll do a bond 1 configuration.
======================================================================
To modify the network card parameters:
[Root@localhost ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Bootproto=dhcp
Onboot=yes
[Root@localhost ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth1
Device=eth1
Bootproto=dhcp
Onboot=yes
Establish and edit ifcfg-bond0 files:
[Root@localhost ~]# Touch/etc/sysconfig/network-scripts/ifcfg-bond0
[Root@localhost ~]# Vim/etc/sysconfig/network-scripts/ifcfg-bond0
Device=bond0
Bootproto=none
Onboot=yes
netmask=255.255.255.0
ipaddr=192.168.10.20
Call Bonding module:
[Root@localhost ~]# modprobe Bonding