# Created by anaconda # # 网络是否工作,不能为no NETWORKING=yes
重启网络
1
service network restart
检查网络状况
执行ping 命令,尝试ping下公网网络,本机网络等
防火墙设置
为了避免不必要的问题 选择关闭防火墙
检查防火墙是否开启; 在窗口中可以看到running 是高亮的.
systemctl status firewalld.service
1 2 3 4 5 6 7 8 9 10 11 12 13
[root@localhost ~]# systemctl status firewalld.service ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: active (running) since 一 2020-12-14 08:48:46 CST; 41min ago Docs: man:firewalld(1) Main PID: 742 (firewalld) CGroup: /system.slice/firewalld.service └─742 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid
12月 14 08:48:44 localhost.home1 systemd[1]: Starting firewalld - dynamic f.... 12月 14 08:48:46 localhost.home1 systemd[1]: Started firewalld - dynamic fi.... Hint: Some lines were ellipsized, use -l to show in full. [root@localhost ~]#