1. 创建bonding
vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
NM_CONTROLLED=no
PEERDNS=no
IPADDR=10.255.250.16
NETMASK=255.255.255.0
GATEWAY=10.255.250.1
SLAVES="eth0 eth1"
BONDING_OPTS="mode=6 miimon=100"
2. 网卡bonding配置
vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
NM_CONTROLLED=no
PEERDNS=no
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
vi ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
TYPE=Ethernet
NM_CONTROLLED=no
PEERDNS=no
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
3.bonding加载
vi /etc/modprobe.d/bonding.conf
alias bond0 bonding
4.重启网络服务生效
/etc/init.d/network restart
网友评论