我和朋友使用 D-link DSl-2750U 无线路由器共享互联网连接,我的网络卡是 Atheros AR9285。最近我有时无法连接到网络。
可能是什么问题?
iwconfig 给出以下输出:
iwconfig
mon0 IEEE 802.11bgn Mode:Monitor Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"DLink"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
ifconfig 给出以下输出:
ifconfig
eth0 Link encap:Ethernet HWaddr 78:84:3c:e7:0f:5a
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:16436 Metric:1
RX packets:2458 errors:0 dropped:0 overruns:0 frame:0
TX packets:2458 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:172791 (172.7 KB) TX bytes:172791 (172.7 KB)
mon0 Link encap:UNSPEC HWaddr CC-AF-78-B3-E5-0F-00-00-00-00-00-00-00-00-00-00
UP BROADCAST NOTRAILERS RUNNING PROMISC ALLMULTI MTU:1500 Metric:1
RX packets:38404 errors:0 dropped:442 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2671272 (2.6 MB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr cc:af:78:b3:e5:0f
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:89 errors:0 dropped:0 overruns:0 frame:0
TX packets:185 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22749 (22.7 KB) TX bytes:32983 (32.9 KB)
nm-tool 给出以下输出: n
m-tool
NetworkManager Tool
State: connecting
- Device: eth0 -----------------------------------------------------------------
Type: Wired
Driver: r8169
State: unavailable
Default: no
HW Address: 78:84:3C:E7:0F:5A
Capabilities:
Carrier Detect: yes
Wired Properties
Carrier: off
- Device: wlan0 [DLink] -------------------------------------------------------
Type: 802.11 WiFi
Driver: ath9k
State: connecting (configuring)
Default: no
HW Address: CC:AF:78:B3:E5:0F
Capabilities:
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points
Chandu: Infra, AC:F1:DF:E8:31:09, Freq 2412 MHz, Rate 54 Mb/s, Strength 32 WPA WPA2
DLink: Infra, FC:75:16:D4:60:32, Freq 2412 MHz, Rate 54 Mb/s, Strength 15
答案1
我也不会使用监控模式,如果没有更多信息,我认为这些可能会有帮助。请运行:
echo "options ath9k nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k.conf
sudo modprobe -rfv ath9k
sudo modprobe -v ath9k
如果您坚持使用监控模式,请尝试:
echo -e '#!/bin/bash\n/sbin/iwconfig mon0 power off' | sudo tee -a /etc/pm/power.d/wireless
这将关闭 mon0 的电源管理。
如果有该选项,最好将路由器设置为 wpa2 加密。
您列出的两个网络的信号强度都太低,无法连接,但我给您运行的第一组命令通常可以在一定程度上解决这个问题。您可能需要靠近路由器才能连接,尤其是在有墙壁或其他东西阻挡信号的情况下。
您的设备是带有 Linux 驱动程序的 ar9285,根据我的经验,它是本系列所有设备中信号强度最差的,因此,无论您做什么,都无法离路由器太远。