RHEL7-无法连接到外网connect: Network is unreachable
程序员文章站
2022-05-01 15:52:43
...
ping不通外网的地址,可以ping通127.0.0.1
[aaa@qq.com Desktop]# ping 114.114.114.144
connect: Network is unreachable
[aaa@qq.com Desktop]# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.093 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.086 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.088 ms
^C
--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.086/0.089/0.093/0.003 ms
我的解决方法是把默认的接口删除,新建了一个接口
注意一下要把Device MAC address添加上来