首页 > 代码库 > NIC Bonding on CentOS 6/7

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

本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1441296

NIC Bonding on CentOS 6/7