centos7网络ping不通怎么办

centos7网络ping不通怎么办

1、进入/etc/sysconfig/network-scripts/目录

cd /etc/sysconfig/network-scripts/

2、编辑ifcfg-ens33配置文件

vim ifcfg-ens33

5a249cbd42933e8f08fda9c331f2358.png

3、将ONBOOT=no修改为ONBOOT=yes

953fd90c7c70aa2718cd8715d25a606.png

4、最后执行如下命令重启网络服务

service network restart

推荐教程:centos教程

以上就是centos7网络ping不通怎么办的详细内容,更多请关注www.sxiaw.com其它相关文章!