通过IPMI控制台配置CentOS7.5网卡:
sed -i 's#ONBOOT=no#ONBOOT=yes#g' ifcfg-enp129s0f0
echo "IPADDR=172.16.15.2" >> ifcfg-enp129s0f0
echo "NETMASK=255.255.255.0" >> ifcfg-enp129s0f0
echo "GATEWAY=172.16.15.254" >> ifcfg-enp129s0f0
echo "DNS1=114.114.114.114" >> ifcfg-enp129s0f0
echo "DNS2=202.106.46.151" >> ifcfg-enp129s0f0
#systemctl restart network