虚拟机开机后配置
vi /etc/sysconfig/network-scripts/ifcfg-ens192
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
ONBOOT=yes
DNS1=114.114.114.114
IPADDR=101.251.210.75
GATEWAY=101.251.210.73
NETMASK=255.255.255.248
重启网络
/etc/init.d/network restart
原文:https://www.cnblogs.com/frantz/p/13970729.html