已连接 WiFi,但无法访问互联网

已连接 WiFi,但无法访问互联网

正如标题所述,我可以连接到 WiFi 网络,但是我无法通过互联网访问任何网站。我刚刚在 MacBook Pro 上安装了全新的 Ubuntu 发行版,因此我对 Linux 还不熟悉。

我也不确定要提供什么其他信息。所以请在这方面给我建议,以及需要什么类型的信息来帮助我解决这个问题。

我目前使用的是 Ubuntu 13.10。

ifconfig 的输出:

eth0      Link encap:Ethernet  HWaddr 10:9a:dd:4d:4d:f0  
          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)
          Interrupt:16 

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:1296 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1296 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:98244 (98.2 KB)  TX bytes:98244 (98.2 KB)

wlan0     Link encap:Ethernet  HWaddr c8:bc:c8:ef:e4:0d  
          inet addr:192.168.0.192  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::cabc:c8ff:feef:e40d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2895 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2513 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:820807 (820.8 KB)  TX bytes:321270 (321.2 KB)

iwconfig 的输出:

eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:"kpke4 Home Network"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:22:B0:B0:98:3B   
          Bit Rate=130 Mb/s   Tx-Power=19 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=55/70  Signal level=-55 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:11   Missed beacon:0

输出ping -c5 8.8.8.8

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 
64 bytes from 8.8.8.8: icmp_seq=1 ttl=47 time=35.2 ms 
64 bytes from 8.8.8.8: icmp_seq=2 ttl=47 time=36.8 ms 
64 bytes from 8.8.8.8: icmp_seq=3 ttl=47 time=50.3 ms 
64 bytes from 8.8.8.8: icmp_seq=4 ttl=47 time=35.9 ms 
64 bytes from 8.8.8.8: icmp_seq=5 ttl=47 time=35.4 ms 
--- 8.8.8.8 ping statistics --- 
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 35.257/38.778/50.372/5.827 ms

输出路线-n

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0

答案1

检查你的 DNS 设置。DHCP 服务器是谁?DHCP 分配哪个 DNS 服务器?

相关内容