问题:
配置了一台 CentOS 虚拟机,发现 ping 不通外网,但是 ping 主机和网关可以 ping 通。
解决方法:
可以尝试关闭防火墙。
查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
或
systemctl stop firewalld
禁止firewall开机启动
systemctl disable firewalld.service
或
systemctl disable firewalld
相关教程推荐:centos教程
以上就是centos外网ping不通怎么解决的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号