ping不通外网的地址,可以ping通127.0.0.1

[root@localhost Desktop]# ping 114.114.114.144
connect: Network is unreachable

[root@localhost 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添加上来

Logo

更多推荐