CentOS的网卡默认是关闭的,所以刚安装的CentOS连不上网络,需要更改配置文件
vi /etc/sysconfig/network-scripts/ifcfg-ens33(名字可能不同)
打开之后把ONBOOT的值改成yes
wl.png
保存之后
重启网卡就可以连接外网了
service network restart
关闭防火墙
systemctl stop firewalld.service

Last modification:April 23, 2018
If you think my article is useful to you, please feel free to appreciate