几天来,我的 wifi 每隔几分钟就会中断一次。我使用的是“原始”Ubuntu 安装(即 Unity、NetworkManager 等)。大约一小时后,连接完全断开,NetworkManager 再也找不到网络了。在 NetworkManager 菜单中切换“启用 Wi-Fi”允许我再次找到并连接到网络。
这是 /var/log/syslog 的摘录:
May 14 16:50:51 terminus kernel: [ 4208.006043] wlan0: deauthenticated from 00:24:fe:a3:98:f6 (Reason: 6)
May 14 16:50:51 terminus wpa_supplicant[907]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:24:fe:a3:98:f6 reason=6
May 14 16:50:51 terminus NetworkManager[868]: <warn> Connection disconnected (reason 6)
May 14 16:50:51 terminus wpa_supplicant[907]: wlan0: SME: Trying to authenticate with 00:24:fe:a3:98:f6 (SSID='FRITZ!Box Fon WLAN 7270' freq=2447 MHz)
May 14 16:50:51 terminus kernel: [ 4208.034507] cfg80211: Calling CRDA to update world regulatory domain
May 14 16:50:51 terminus kernel: [ 4208.035050] wlan0: authenticate with 00:24:fe:a3:98:f6
May 14 16:50:51 terminus kernel: [ 4208.042178] wlan0: send auth to 00:24:fe:a3:98:f6 (try 1/3)
May 14 16:50:51 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: completed -> authenticating
May 14 16:50:51 terminus wpa_supplicant[907]: wlan0: Trying to associate with 00:24:fe:a3:98:f6 (SSID='FRITZ!Box Fon WLAN 7270' freq=2447 MHz)
May 14 16:50:51 terminus kernel: [ 4208.042526] cfg80211: World regulatory domain updated:
May 14 16:50:51 terminus kernel: [ 4208.042533] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
May 14 16:50:51 terminus kernel: [ 4208.042539] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:50:51 terminus kernel: [ 4208.042543] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:50:51 terminus kernel: [ 4208.042547] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
May 14 16:50:51 terminus kernel: [ 4208.042550] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:50:51 terminus kernel: [ 4208.042554] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:50:51 terminus kernel: [ 4208.044622] wlan0: authenticated
May 14 16:50:51 terminus kernel: [ 4208.046291] wlan0: associate with 00:24:fe:a3:98:f6 (try 1/3)
May 14 16:50:51 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: authenticating -> associating
May 14 16:50:51 terminus kernel: [ 4208.056055] wlan0: RX AssocResp from 00:24:fe:a3:98:f6 (capab=0x431 status=0 aid=1)
May 14 16:50:51 terminus wpa_supplicant[907]: wlan0: Associated with 00:24:fe:a3:98:f6
May 14 16:50:51 terminus kernel: [ 4208.065893] wlan0: associated
May 14 16:50:51 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: associating -> 4-way handshake
May 14 16:50:51 terminus wpa_supplicant[907]: wlan0: WPA: Key negotiation completed with 00:24:fe:a3:98:f6 [PTK=CCMP GTK=TKIP]
May 14 16:50:51 terminus wpa_supplicant[907]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:24:fe:a3:98:f6 completed [id=0 id_str=]
May 14 16:50:51 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
May 14 16:51:55 terminus wpa_supplicant[907]: wlan0: CTRL-EVENT-SCAN-STARTED
May 14 16:52:27 terminus kernel: [ 4304.188238] wlan0: deauthenticated from 00:24:fe:a3:98:f6 (Reason: 6)
May 14 16:52:27 terminus wpa_supplicant[907]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:24:fe:a3:98:f6 reason=6
May 14 16:52:27 terminus NetworkManager[868]: <warn> Connection disconnected (reason 6)
May 14 16:52:27 terminus wpa_supplicant[907]: wlan0: SME: Trying to authenticate with 00:24:fe:a3:98:f6 (SSID='FRITZ!Box Fon WLAN 7270' freq=2447 MHz)
May 14 16:52:27 terminus kernel: [ 4304.215024] cfg80211: Calling CRDA to update world regulatory domain
May 14 16:52:27 terminus kernel: [ 4304.215540] wlan0: authenticate with 00:24:fe:a3:98:f6
May 14 16:52:27 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: completed -> authenticating
May 14 16:52:27 terminus wpa_supplicant[907]: wlan0: Trying to associate with 00:24:fe:a3:98:f6 (SSID='FRITZ!Box Fon WLAN 7270' freq=2447 MHz)
May 14 16:52:27 terminus kernel: [ 4304.219680] wlan0: send auth to 00:24:fe:a3:98:f6 (try 1/3)
May 14 16:52:27 terminus kernel: [ 4304.222003] wlan0: authenticated
May 14 16:52:27 terminus kernel: [ 4304.222790] wlan0: associate with 00:24:fe:a3:98:f6 (try 1/3)
May 14 16:52:27 terminus kernel: [ 4304.223063] cfg80211: World regulatory domain updated:
May 14 16:52:27 terminus kernel: [ 4304.223072] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
May 14 16:52:27 terminus kernel: [ 4304.223078] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:52:27 terminus kernel: [ 4304.223083] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:52:27 terminus kernel: [ 4304.223087] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
May 14 16:52:27 terminus kernel: [ 4304.223090] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:52:27 terminus kernel: [ 4304.223094] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
May 14 16:52:27 terminus kernel: [ 4304.226833] wlan0: RX AssocResp from 00:24:fe:a3:98:f6 (capab=0x431 status=0 aid=1)
May 14 16:52:27 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: authenticating -> associating
May 14 16:52:27 terminus wpa_supplicant[907]: wlan0: Associated with 00:24:fe:a3:98:f6
May 14 16:52:27 terminus kernel: [ 4304.232953] wlan0: associated
May 14 16:52:27 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: associating -> 4-way handshake
May 14 16:52:27 terminus wpa_supplicant[907]: wlan0: WPA: Key negotiation completed with 00:24:fe:a3:98:f6 [PTK=CCMP GTK=TKIP]
May 14 16:52:27 terminus wpa_supplicant[907]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:24:fe:a3:98:f6 completed [id=0 id_str=]
May 14 16:52:27 terminus NetworkManager[868]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
May 14 16:53:55 terminus wpa_supplicant[907]: wlan0: CTRL-EVENT-SCAN-STARTED
May 14 16:54:00 terminus wpa_supplicant[907]: nl80211: send_and_recv->nl_recvmsgs failed: -33
May 14 16:54:05 terminus wpa_supplicant[907]: wlan0: WPA: Group rekeying completed with 00:24:fe:a3:98:f6 [GTK=TKIP]
其他相关信息:
root@terminus:~# lshw -c network
*-network
description: Wireless interface
product: Centrino Advanced-N 6230 [Rainbow Peak]
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 34
serial: 88:53:2e:42:0b:71
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-24-generic firmware=18.168.6.1 ip=192.168.3.22 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
resources: irq:52 memory:f1b00000-f1b01fff
root@terminus:~# lsmod
Module Size Used by
btrfs 835954 0
raid6_pq 97812 1 btrfs
xor 21411 1 btrfs
ufs 74890 0
qnx4 13317 0
hfsplus 107516 0
hfs 54677 0
minix 36140 0
ntfs 97369 0
msdos 17332 0
jfs 181348 0
xfs 912173 0
libcrc32c 12644 2 xfs,btrfs
ctr 13049 1
ccm 17773 1
nls_iso8859_1 12713 0
snd_hda_codec_hdmi 46207 1
snd_hda_codec_realtek 61438 1
joydev 17381 0
intel_rapl 18773 0
x86_pkg_temp_thermal 14205 0
intel_powerclamp 14705 0
coretemp 13435 0
kvm_intel 143060 0
kvm 451511 1 kvm_intel
dell_laptop 18168 0
dcdbas 14928 1 dell_laptop
crct10dif_pclmul 14289 0
crc32_pclmul 13113 0
ghash_clmulni_intel 13259 0
aesni_intel 55624 2
uvcvideo 80885 0
aes_x86_64 17131 1 aesni_intel
lrw 13286 1 aesni_intel
gf128mul 14951 1 lrw
videobuf2_vmalloc 13216 1 uvcvideo
glue_helper 13990 1 aesni_intel
ablk_helper 13597 1 aesni_intel
videobuf2_memops 13362 1 videobuf2_vmalloc
cryptd 20359 3 ghash_clmulni_intel,aesni_intel,ablk_helper
psmouse 102222 0
videobuf2_core 40664 1 uvcvideo
serio_raw 13462 0
videodev 134688 2 uvcvideo,videobuf2_core
rfcomm 69160 8
arc4 12608 2
bnep 19624 2
snd_hda_intel 52355 3
iwldvm 232285 0
snd_hda_codec 192906 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
mac80211 626489 1 iwldvm
nouveau 1097199 1
snd_hwdep 13602 1 snd_hda_codec
snd_pcm 102099 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
btusb 32412 0
snd_page_alloc 18710 2 snd_pcm,snd_hda_intel
snd_seq_midi 13324 0
snd_seq_midi_event 14899 1 snd_seq_midi
bluetooth 395423 22 bnep,btusb,rfcomm
iwlwifi 169932 1 iwldvm
snd_rawmidi 30144 1 snd_seq_midi
i915 783485 3
dell_wmi 12761 0
lpc_ich 21080 0
sparse_keymap 13948 1 dell_wmi
snd_seq 61560 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
mxm_wmi 13021 1 nouveau
snd_timer 29482 2 snd_pcm,snd_seq
cfg80211 484040 3 iwlwifi,mac80211,iwldvm
ttm 85115 1 nouveau
snd 69238 17 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
drm_kms_helper 52758 2 i915,nouveau
wmi 19177 3 dell_wmi,mxm_wmi,nouveau
drm 302817 7 ttm,i915,drm_kms_helper,nouveau
i2c_algo_bit 13413 2 i915,nouveau
soundcore 12680 1 snd
mei_me 18627 0
mei 82274 1 mei_me
mac_hid 13205 0
video 19476 2 i915,nouveau
parport_pc 32701 0
ppdev 17671 0
lp 17759 0
parport 42348 3 lp,ppdev,parport_pc
hid_generic 12548 0
usbhid 52616 0
hid 106148 2 hid_generic,usbhid
usb_storage 62209 0
ahci 25819 1
r8169 67581 0
libahci 32168 1 ahci
mii 13934 1 r8169
我猜这可能是硬件问题,但据我所知,Windows(8,64位)上不会出现此问题。但是,由于重新连接速度非常快,我可能到目前为止还没有注意到。
知道问题可能是什么吗?“原因 6”是什么?是什么原因导致的?我该如何进一步调试问题?
这好像是自 Trusty 以来的网络问题可能是同样的问题。如果有人能在那里发布我的链接,我将不胜感激,因为我的声誉不够。
我通过在 /etc/modprobe.d/ 中的某个文件中添加“options iwlwifi 11n_disable=1”来禁用模式 N 无线。从那时起,我就再也没有断开过连接!
答案1
我遇到过类似的问题,并发现以下内容有助于(但并未解决)我的问题:
检查您的无线网络设置使用哪个监管机构:
iw reg get
我的默认值为“00”,未设置。由于我在美国,所以我运行
sudo iw reg set US
我的无线设置似乎使我的设备的行为更加一致,尽管我也在运行
在文件 /etc/modprobe.d/iwlwifi.conf 中禁用 802.11n 协议
options iwlwifi 11n_disable=1
在文件 /etc/sysctl.conf 中我禁用了 ipv6 协议
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
最后,我的无线路由器已设置为不使用 QOS/WWN
答案2
对我来说,它有助于将我的 wlan 路由器上的自动频道更改为固定频道。
我也一直收到错误消息wlan0: deauthenticated from aa:bb:cc:dd:ee:ff
,我发现(使用命令wpa_cli
)这种情况发生在 WLAN 路由器更改其信道之后。因此,我现在使用固定的 WLAN 信道,这解决了这个问题。
您可以使用 查看当前使用的频道wpa_cli
。它会显示频道何时更改。当 WLAN 频道更改时,您可以看到频率与之前不同。
这不是要找到任何免费的 wlan 信道,而是当信道被更改时,wpa_supplicant 似乎存在问题,它不再工作,而是一直尝试重新连接,但没有成功。此后,您会收到很多wlan0: deauthenticated from aa:bb:cc:dd:ee:ff
消息(mac 地址会有所不同)。因此,解决方案是将 wlan 信道固定到您喜欢的任何信道。