Linux 无法连接网络排查方法

1、hosts文件增加 127.0.0.1 对localhost的解析。
2、检查/etc/resove.cnf dns配置是否正确
3、route命令检查是否有默认路由,没有就 route add 网段 gw 网段网关;
4、重启network服务。
原文地址:https://www.cnblogs.com/netsa/p/7149128.html