1. Login System switch Directory:
# cd/etc/sysconfig/network-scripts/
2. Add The configuration of the binding nic bond#
# Vim ifcfg-bond0
Device=bond0
Type=ethernet
Onboot=yes
Bootproto=static
ipaddr=59.151.2.134
netmask=255.255.255.240
gateway=59.151.2.129
# Vim Ifcfg-bond1
Device=bond1
Type=ethernet
Onboot=yes
Bootproto=static
ipaddr=172.16.10.134
netmask=255.255.255.0
3. Modify the original NIC configuration file contents as:
# Cat ifcfg-em*
Device=em1
Onboot=yes
Bootproto=none
Device=em2
Onboot=yes
Bootproto=none
Device=em3
Onboot=yes
Bootproto=none
Device=em4
Onboot=yes
Bootproto=none
4. add in the dist.conf file
# vim/etc/modprobe.d/dist.conf
Alias Bond0bonding
Options bond0miimon=100 mode=6
Alias Bond1bonding
Options bond1miimon=100 mode=6
Alias Net-pf-10off
Alias IPv6 off
5. Add in /etc/rc.local
Ifenslave bond0em1 EM2
Ifenslave bond1em3 EM4
This article is from the "WQH" blog, make sure to keep this source http://wangqh.blog.51cto.com/5367393/1758788
Dual NIC bindings on CentOS