@zphj1987
2016-07-15T18:21:25.000000Z
字数 719
阅读 1911
zbkc
原始配置文件
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="00:0C:29:04:AE:65"
IPV6INIT="no"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
配置文件2
DEVICE="eth1"
BOOTPROTO="dhcp"
HWADDR="00:0C:29:04:AE:6F"
IPV6INIT="no"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
创建/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE="bond0"
BOOTPROTO="dhcp"
IPV6INIT="no"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="bond"
BONDING_MASTER=yes
BONDING_OPTS="mode=0 miimon=100"
DEVICE="eth0"
MASTER=bond0
SLAVE=yes
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
HWADDR="00:0C:29:04:AE:65"
NM_CONTROLLED="no"
DEVICE="eth1"
MASTER=bond0
SLAVE=yes
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
HWADDR="00:0C:29:04:AE:6F"
NM_CONTROLLED="no"
换模式重启就可以了
检查bond模式
cat /proc/net/bonding/bond0