centos7网络ping不通怎么办

2020-08-07 19:12:10

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