有连接,但没有互联网

有连接,但没有互联网

我已连接到无线网络,但无法连接到互联网。我多次重启笔记本电脑,但什么也没发生。如果我尝试浏览网页(或执行任何其他需要互联网连接的操作),我就会收到“找不到服务器“错误。我不认为问题出在网络或硬件上,因为如果我启动 Windows,一切都正常。这是 ifconfig 的输出:

eth0    Link encap:Ethernet  HWaddr 10:bf:48:48:84:63  
      UP BROADCAST MULTICAST  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:68 errors:0 dropped:0 overruns:0 frame:0
      TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:5092 (5.0 KB)  TX bytes:5092 (5.0 KB)

wlan0     Link encap:Ethernet  HWaddr 44:6d:57:c6:2f:04  
      inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
      inet6 addr: fe80::466d:57ff:fec6:2f04/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:7 errors:0 dropped:0 overruns:0 frame:0
      TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:2482 (2.4 KB)  TX bytes:10856 (10.8 KB) 

$ ping -c3 www.google.com
ping: unknown host www.google.com

$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

答案1

尝试 Fn+F8 或者你可以尝试 sudo dhclient eth0 sudo

相关内容