虚拟机:Vmware Workstation Pro 15.5
安装系统:CentOS-7-x86_64-DVD-1511
网络适配器:NAT模式
步骤一:
cd /etc/sysconfig/network-scrips/
步骤二:
vim ifcfg-enxxxxxx,修改ONBOOT的值
ONBOOT=yes的意思是是否激活网卡,激活后就可以连接到外网了
步骤三:重启网卡
service network restart
Vmware 新装centos7 ping 百度 出现 unknow host
原文:https://www.cnblogs.com/happyflyingpig/p/12491046.html