admin
不忘初心,方得始终
级别: 管理员
只看楼主 | | | 0楼 发表于:2018-10-18 16:36

通过IPMI控制台配置CentOS7.5网卡

  通过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