cd /etc/sysconfig/network-scripts/
vi ifcfg-enp0s3
1.修改配置
BOOTPROTO=static2.新增配置(查询宿主机对应的信息)
IPADDR=192.168.0.17GATEWAY=192.168.1.1NETMASK=255.255.240.0DNS1=219.141.136.10DNS2=219.141.140.10NM_CONTROLLED=no