我使用的是 kubuntu 15.04,我可以连接到网络,但无法访问互联网。我可以 ping 我的本地 IP 地址,KDE Connect 在我的手机上工作正常,但我无法 ping 网站或通过 Firefox、Chromium 或 Lynx 上网。come 命令的输出类似线程要求
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 1024 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
$ sudo iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
我不知道该怎么办。这种情况发生在多个网络上,多次重启和删除/添加连接都没有任何帮助。任何帮助都有用。谢谢!
编辑
哪里traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.1.1 (192.168.1.1) 29.937 ms 35.301 ms 35.300 ms
2 96.120.66.97 (96.120.66.97) 45.589 ms 49.765 ms 50.160 ms
3 68.86.237.9 (68.86.237.9) 50.803 ms 51.568 ms 51.568 ms
4 68.85.106.29 (68.85.106.29) 63.827 ms 56.057 ms 63.820 ms
5 68.86.90.217 (68.86.90.217) 63.818 ms 65.383 ms 65.010 ms
6 68.86.83.98 (68.86.83.98) 63.802 ms 17.621 ms 18.857 ms
7 23.30.206.126 (23.30.206.126) 31.115 ms 26.345 ms 29.333 ms
8 209.85.244.145 (209.85.244.145) 31.238 ms 209.85.244.147 (209.85.244.147) 34.369 ms 209.85.244.157 (209.85.244.157) 31.377 ms
9 8.8.8.8 (8.8.8.8) 31.059 ms 33.854 ms 32.818 ms
并跟踪路由 www.google.com
www.google.com: Temporary failure in name resolution
Cannot handle "host" cmdline arg `www.google.com' on position 1 (argc 1)
解决方案
我通过 GUI 添加了8.8.8.8
和8.8.4.4
,但什么也没发生。我添加nameserver 8.8.8.8
了 和/etc/resolv.conf
,然后我就可以上网了。