centos网卡绑定

DEVICE=bond0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
BONDING_OPTS="bonding parameters separated by spaces"
DEVICE=ethX
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
NM_CONTROLLED=no

错误解决:

bringing up interface bond0 connection activation failed master connection not found or invalid
解决方案:关闭NetworkManager
步骤1:chkconfig NetworkManager –level 2345 off
步骤2:service NetworkManager stop

链接:Redhat官方操作手册

网络服务NetworkManager对于bond0和bridge的影响

centos 6.3 vlan配置