Nic alias Configuration:
This is similar to changing the ip address of the NIC temporarily in ifconfig. It's all temporary. You just need to restart your computer.
With a permanent ip alias:
Cp ifcfg-eth0 ifcfg-eth0: 0
Vim ifcfg-eth0: 0
This can also be done, right?
Restart the network.
Nic binding: the VM has two NICs, one eth0 and one eth1.
Linux allows you to bind multiple physical NICs to a logical Nic and bind two or more network interfaces as one network interface to increase bandwidth and/or provide redundancy.
Select Linux Ethernet binding mode
Mode 0 (balanced round robin)-Round Robin policy, which is used by all interfaces. Use the round robin method to transmit packets in all Slave; any
Slave can receive.
Mode 1 (active backup)-fault tolerance. Only one Slave interface can be used at a time, but if this interface fails, the other Slave
Will replace it.
Mode 3 (broadcast)-fault tolerance. All packets are broadcast through all Slave interfaces.
Other binding modes are described in the kernel documentation networking/bonding.txt.
Nic configuration file:
Which of the following network interfaces and logical network interfaces are configured?
Logical NIC:
Configure the system to load the bonding module:
Attach the slave interface to bond0
/Etc/rc. d/rc. local
Ifenslave bond0 eth0 eth1
Reboot system
View bonding status:
Cat/proc/net/bonding/bond0
If ifdown eth0 is used, eth1 is immediately topped when eth0 is bad.
Kernel network parameter adjustment:
Cd/proc/sys/net/ipv4 prevent others from pinging
Allow other hosts to ping