我在联想 Y650 Ideapad 笔记本电脑的硬盘上全新安装了 Ubuntu 14.04 LTS。无线适配器是 Intel PRO/Wireless 5100 AGN [Shiloh]。
最初我无法连接到任何无线网络;但是,我可以看到它们。通过以太网连接时没有问题。我只能通过在终端中输入以下命令来连接到无线网络:
echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
网速极慢,时断时续。我进行网速测试时,ping 值很好(24 到 26 毫秒),但下载速度在 0.15 到 0.30 Mbps 之间。
系统配置
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11abg ESSID:"PinkRabbit"
Mode:Managed Frequency:2.412 GHz Access Point: E8:40:F2:CD:18:0B
Bit Rate=2 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-26 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:254 Missed beacon:0
是否配置
eth0 Link encap:Ethernet HWaddr 00:23:5a:d2:70:91
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:17
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:171 errors:0 dropped:0 overruns:0 frame:0
TX packets:171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15613 (15.6 KB) TX bytes:15613 (15.6 KB)
wlan0 Link encap:Ethernet HWaddr 00:1e:65:3e:0c:48
inet addr:192.168.0.13 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21e:65ff:fe3e:c48/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9032 (9.0 KB) TX bytes:16851 (16.8 KB)
nm 工具
NetworkManager Tool
State: connected (global)
- Device: eth0 -----------------------------------------------------------------
Type: Wired
Driver: tg3
State: unavailable
Default: no
HW Address: 00:23:5A:D2:70:91
Capabilities:
Carrier Detect: yes
Wired Properties
Carrier: off
- Device: wlan0 [PinkRabbit] --------------------------------------------------
Type: 802.11 WiFi
Driver: iwlwifi
State: connected
Default: yes
HW Address: 00:1E:65:3E:0C:48
Capabilities:
Speed: 1 Mb/s
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points (* = current AP)
*PinkRabbit: Infra, E8:40:F2:CD:18:0B, Freq 2412 MHz, Rate 54 Mb/s, Strength 92 WPA WPA2
IPv4 Settings:
Address: 192.168.0.13
Prefix: 24 (255.255.255.0)
Gateway: 192.168.0.1
DNS: 64.71.255.204
DNS: 64.71.255.198
DNS: 8.8.8.8
DNS: 8.8.4.4
答案1
我不知道这有多大相关性,我仍然是 Ubuntu 新手,但我的 Ralink 5362 卡也遇到了类似的问题。
唯一似乎有效的是以下内容:
Ubuntu 中的 Debian Avahi 守护程序中有一个错误。要解决这个问题,您需要/etc/nsswitch.conf
按如下方式编辑以下文件。
在命令行中输入以下内容
sudo -H gedit /etc/nsswitch.conf
这将在文本编辑器中打开 nsswitch.conf 文件。然后只需将以下行更改为
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
到下面一行并保存文件。
hosts: files dns
重置您的互联网连接或重新启动您的系统,您的无线连接应该会恢复到最高速度。这至少对我来说是有效的。
答案2
我实际上也遇到了这个问题,所以我期待任何永久的解决方案,但一个临时的方法是:
sudo iwconfig wlan0 rate 54M
其中 54M 是您的实际无线容量。
答案3
我注意到我的笔记本电脑(Intel Wireless 7260 / Lenovo W540)也存在同样的问题。每隔几天,网络速度就会变得非常缓慢(包括所有协议上的流量:http、ssh、ftp 等)。我相信我也在 eth0 上遇到过同样的情况,但我记不清了。
对我来说,解决方法是重新启动网络管理器——这似乎可以解决所有问题。
jmiranda@jmiranda-ThinkPad-W540:~$ sudo service network-manager restart
瘦身
jmiranda@jmiranda-ThinkPad-W540:~$ sudo lshw -C network
*-network
description: Ethernet interface
product: Ethernet Connection I217-LM
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 04
serial: 3c:97:0e:ea:1b:a4
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k firmware=0.13-3 latency=0 link=no multicast=yes port=twisted pair
resources: irq:44 memory:b2a00000-b2a1ffff memory:b2a3f000-b2a3ffff ioport:5080(size=32)
*-network
description: Wireless interface
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 6b
serial: 7c:7a:91:06:7b:e2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-29-generic firmware=22.1.7.0 ip=192.168.1.158 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:45 memory:b2800000-b2801fff
答案4
- 打开“附加驱动程序”
- 转到“其他软件”选项卡,选中所有框
- 更新驱动程序