NIC Bonding on CentOS 6/7

Make sure not to use NetworkManager, using normal network


vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.44.27
NETMASK=255.255.255.0
GATEWAY=192.168.44.200
DNS1=210.22.84.3
USERCTL=no
BONDING_OPTS="mode=1 miimon=100"

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
MASTER=bond0
SLAVE=yes
USERCTL=no
BOOTPROTO=none
ONBOOT=yes


sed  "s/eth0/eth1/g" ifcfg-eth0 > ifcfg-eth1

你可能感兴趣的:(centos,bonding,nic)