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
时间: 2024-10-16 07:38:28