我有一台笔记本电脑,可以双启动到 Ubuntu 12.04 或 Windows 7,但我似乎无法在 Ubuntu 端执行任何需要互联网连接的操作。我已经按照故障排除指南清除缓存、重新启动等,但无济于事。顶部菜单上的无线图标显示我已连接到我的 wifi 网络,但 Firefox 无法工作,我也无法使用 ssh 或 sftp 协议。我使用 Firefox 时收到的错误消息是“未找到服务器”。任何想法都值得赞赏!
ifconfig:
eth0 Link encap:Ethernet HWaddr e8:03:9a:34:9d:1d
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:41 Base address:0x8000
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:16436 Metric:1
RX packets:1409 errors:0 dropped:0 overruns:0 frame:0
TX packets:1409 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:125628 (125.6 KB) TX bytes:125628 (125.6 KB)
wlan0 Link encap:Ethernet HWaddr 88:53:2e:94:c2:b7
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::8a53:2eff:fe94:c2b7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:594 errors:0 dropped:0 overruns:0 frame:0
TX packets:1109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:172548 (172.5 KB) TX bytes:84207 (84.2 KB)
ping google.com:
ping: unknown host google.com
ls -ld /etc/resolv.conf:
lrwxrwxrwx 1 root root 29 Aug 17 2012 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
猫/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.0.1
search hsd1.fl.comcast.net
ping -c4 192.168.1.1:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms
ping 192.168.1.1:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.103 icmp_seq=1 Destination Host Unreachable
From 192.168.1.103 icmp_seq=2 Destination Host Unreachable
From 192.168.1.103 icmp_seq=5 Destination Host Unreachable
From 192.168.1.103 icmp_seq=6 Destination Host Unreachable
From 192.168.1.103 icmp_seq=7 Destination Host Unreachable
From 192.168.1.103 icmp_seq=8 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
11 packets transmitted, 0 received, +6 errors, 100% packet loss, time 10056ms
pipe 3
路线-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 0 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 2 0 0 wlan0
消息 | grep wlan0:
[ 28.289967] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 28.290703] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 35.980297] wlan0: authenticate with 00:23:69:c6:c9:c8 (try 1)
[ 35.984082] wlan0: authenticated
[ 35.992776] wlan0: associate with 00:23:69:c6:c9:c8 (try 1)
[ 35.998868] wlan0: RX AssocResp from 00:23:69:c6:c9:c8 (capab=0x411 status=0 aid=4)
[ 35.998872] wlan0: associated
[ 36.003690] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 46.419609] wlan0: no IPv6 routers present
ifconfig (再次):
eth0 Link encap:Ethernet HWaddr e8:03:9a:34:9d:1d
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:41 Base address:0x8000
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:16436 Metric:1
RX packets:147 errors:0 dropped:0 overruns:0 frame:0
TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13468 (13.4 KB) TX bytes:13468 (13.4 KB)
wlan0 Link encap:Ethernet HWaddr 88:53:2e:94:c2:b7
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::8a53:2eff:fe94:c2b7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:65 errors:0 dropped:0 overruns:0 frame:0
TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20780 (20.7 KB) TX bytes:55633 (55.6 KB)
答案1
尝试将您的 DNS 更改为 Google 的:8.8.8.8、8.8.4.4
同时将搜索更改为:www.google.com
可以通过右键单击网络、编辑连接、选择与 WiFi 相关的连接、地址、选择 DHCP(仅地址)来完成此操作