网卡名为ens32
vi /etc/sysconfig/network-scripts/ifcfg-ens32
bootproto=static
onboot=yes
在最后加上几行,IP地址、子网掩码、网关、dns服务器
systemctl restart network
成功