使用network后,发现切换bond后有残留配置,于是切换到了NetworkManager
cat >/etc/sysconfig/network-scripts/ifcfg-bond0<< EOF_bond1 NAME=bond1 DEVICE=bond1 TYPE=Bond ONBOOT=yes BOOTPROTO=static IPADDR=10.1.14.96 NETMASK=255.255.255.0 GATEWAY=10.1.14.254 #NM_CONTROLLED=no USERCTL=no BONDING_OPTS="mode=0 miimon=100" EOF_bond1 cat >/etc/sysconfig/network-scripts/ifcfg-eno1<< EOF_eno1 TYPE=Ethernet BOOTPROTO=none NAME=eno1 DEVICE=eno1 ONBOOT=yes MASTER=bond1 SLAVE=yes #NM_CONTROLLED=no USERCTL=no EOF_eno1 cat >/etc/sysconfig/network-scripts/ifcfg-eno2 <<EOF_eno2 TYPE=Ethernet BOOTPROTO=none NAME=eno2 DEVICE=eno2 ONBOOT=yes MASTER=bond1 SLAVE=yes #NM_CONTROLLED=no USERCTL=no EOF_eno2 systemctl enable NetworkManager --now; systemctl disable network --now; nmcli connection reload;nmcli networking off;nmcli networking on cat /proc/net/bonding/bond1
标签:sysconfig,bond1,ifcfg,centos7,etc,scripts,network From: https://www.cnblogs.com/santia-god/p/17266269.html