Configuration of NIC aliases:
This and ifconfig temporarily modify the network card IP is similar, but not the same. Are temporary, just restart the computer will be gone.
With permanent IP aliases:
CP Ifcfg-eth0 ifcfg-eth0:0
Vim ifcfg-eth0:0
This is going to work out, right?
Restart the network, it's OK.
NIC binding: The virtual machine is a 2 nic, a eth0 piece of eth1.
Linux supports the bundling of multiple physical network cards into a single logical network card, which allows two or more network interfaces to be used as a single networking interface, thereby increasing bandwidth and/or providing redundancy.
Select Linux Ethernet Binding Mode
?
Mode 0 (Balanced round robin)-round robin, all interfaces are used. Use round robin to transfer packets in all Slave;
Slave can be received.
?
Mode 1 (active backup)-fault tolerance. Only one Slave interface can be used at a time, but if the interface fails, the other Slave
will replace it.
?
Mode 3 (broadcast)-fault tolerance. All packets are broadcast through all Slave interfaces.
Additional binding modes are described in the kernel document Networking/bonding.txt file.
Configuration file for Nic:
Below is the configuration of which 2 NICs are configured and the logical NIC
Logical NIC:
Configure the system to load the bonding module:
Additional slave interface to bond0
/etc/rc.d/rc.local
Ifenslave bond0 eth0 eth1
Reboot restart System
View bonding Status:
Cat/proc/net/bonding/bond0
Using Ifdown eth0 will find that the eth1 will be on top immediately when the eth0 is bad.
Tuning of kernel network parameters:
Cd/proc/sys/net/ipv4 prevent others from pinging
Allow other hosts to ping