1. the environment describes the virtual machine created in esxi5.5, the system is Centos6.4, the original only one network card, the name is ifcfg-eth0. To achieve network redundancy, log on to VMwarevSphereClient and add a network adapter named ifcfg-eth1 to the virtual machine. 2. dual Nic binding steps: 1. environment description
The virtual machine created in esxi5.5, the system is Centos6.4, originally only one Nic, named ifcfg-eth0. To achieve network redundancy, login to VMware vSphere Client to the virtual machine added a Nic, Nic name ifcfg-eth1.
2. dual Nic binding steps:
DEVICE = eth0
HWADDR = 78: 2B: CB: 30: 66: 29 # Nic MAC address, which can be removed
TYPE = Ethernet # Remove
ONBOOT = yes # enable the device automatically when the system starts
SLAVE = yes
MASTER = bond0
BOOTPROTO = none # No protocol is used at startup
DEVICE = eth2
HWADDR = 78: 2B: CB: 30: 66: 2B # Nic MAC address, which can be removed
TYPE = Ethernet # TYPE, which can be removed
ONBOOT = yes # enable the device automatically when the system starts
SLAVE = yes
MASTER = bond0
BOOTPROTO = none # No protocol is used at startup
DEVICE = bond0
TYPE = Ethernet
ONBOOT = yes
BONDING_OPTS = "miimon = 100 mode = 0"
# Mode = 0 indicates the "round-robin" policy, indicating the server load balancer mode. both NICs work.
# Mode = 1 indicates the "active-backup" policy, indicating the redundancy mode. only one network adapter is working. if a problem occurs, the other network adapter is enabled.
# You can also add the following two lines at the end of the/etc/modprobe. d/dist. conf file
# Alias bond0 bonding
# Options bond0 miimon = 100 mode = 1
BOOTPROTO = static
IPADDR = 10.240.210.233
NETMASK = 255.255.255.0
DNS1 = 8.8.8.8
Ifenslave bond0 eth2 eth3
3. restart the NIC to make the operation take effect.
Service network restart
4. test results
When any network adapter is disabled, normal communication on the server is not affected.