The function of NIC binding: 1, redundancy, prevent single point of failure
2. Prevent transmission bottlenecks
1. Switch Port bindings:
1 system-view2 link-aggregation Group 1 mode manual34 For example, to bind ports 1 and 2 56 interface ethernet1/0/1 # Enter switch 1 port 7 Port Link-aggregation Group 1 # joins the current port into the aggregation Group 18 interface ETHERNET1/0/2 # Enter switch 2 port 9 Port link-aggregation Group 1
2. System NIC Binding
1. Set Boundingvi/etc/modules.conf#Add the following contentalias bond0 bondingoptions bonding mode=1 miimon=200 primary=eth2 use_carrier=12. Load bonding module Modprobe bonding3. Create/Modify bond0 eth0 eth1 configuration file VI/et/sysconfig/network-ifcfg-"NIC name" DEVICE=' bond0 ' Bootproto=' static ' broadcast=' x.x.x.x ' ipaddr=' x.x.x.x ' DEVICE=Eth0bootproto=' static ' STARTMODE=' Onboot ' DEVICE=Eth1bootproto=' static ' STARTMODE=' Onboot '4. Restart all NICs rcnetwork restart5. Binding eth0 eth1 to Bond0ifenslave bond0 eth0ifenslave bond0 eth16Auto-load settings after reboot:/etc/init.d/Add bonding startup file VI/etc/init.d/bonding#Add the following statementCase " $”inchstart)/sbin/ifenslave bond0 eth0/sbin/Ifenslave bond0 eth1; *);; Esac7. Add the script that loads the bonding module to the startup script VI/etc/init.d/Boot.localmodprobe Bonding
NIC Bindings under Linux