在 Arch Linux 中连接到开放的 wifi 网络时出现问题

在 Arch Linux 中连接到开放的 wifi 网络时出现问题

我的大楼里有两个开放的 WiFi 网络,分别称为 A 和 B。我在这里住了两年多,它们一直工作正常,但现在(离开一段时间后)我遇到了一些我无法解决的问题诊断。

问题是,一段时间后(有时是 5 分钟,有时是 1 小时),我连接的网络停止了,然后我必须更改为另一个网络。这种情况会无限期地持续下去,我必须不断在网络 A 和 B 之间切换。

我很确定这是我的计算机的问题,因为当我用手机连接到相同的网络时,它们可以正常工作。我还给这里的 IT 人员打电话,他们向我保证网络运行良好。问题是,其他网络不会发生这种情况(我注意到)。

问题是,我什至不知道如何诊断问题,更不用说解决它了。我尝试重置这些连接并重新启动计算机,我已经安装了所有更新(因为这可能是早期更新引入的网络管理器上的错误......)。

我该如何诊断这个问题(并随后解决它)?

PS:我在 Samsung 9 笔记本电脑上安装了 Arch Linux(最新)。

PS2:发出时ping 8.8.8.8我得到正常结果一段时间,最终打印出来:

From 000.00.000.00 icmp_seq=1311 Destination Host Unreachable

其中上面的零代表我当前的 IP。

编辑:

8.8.8.8ping 路由器的 IP 给我的结果与 ping :完全相同Destination Host Unreachable

这是网络管理器的输出使用journalctl --boot _SYSTEMD_UNIT=NetworkManager.service。显然,有趣的行是警告和消息连接断开的行(原因 6)。我也曾在那里发现过一两次原因-3。

我也尝试过这个建议在这里但这没有用。

编辑2:

添加 的输出lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04e8:7301 Samsung Electronics Co., Ltd 
Bus 001 Device 004: ID 2232:1083 Silicon Motion 
Bus 001 Device 003: ID 8087:0a2b Intel Corp. 
Bus 001 Device 002: ID 1ea7:0064 SHARKOON Technologies GmbH 
Bus 001 Device 007: ID 22b8:2e24 Motorola PCS 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

iwconfig添加通过手机USB连接时的输出:

wlp1s0    IEEE 802.11  ESSID:off/any                                                                                                                                         
          Mode:Managed  Access Point: Not-Associated   Tx-Power=off                                                                                                          
          Retry short limit:7   RTS thr:off   Fragment thr:off                                                                                                               
          Power Management:off                                                                                                                                               

vpn0      no wireless extensions.                                                                                                                                            

enp0s20f0u1  no wireless extensions.                                                                                                                                         

lo        no wireless extensions.    

添加通过其中一个 WiFi 工作时连接时的输出iwconfig(另一个 WiFi 的输出几乎完全相同):

wlp1s0    IEEE 802.11  ESSID:"AP A"
          Mode:Managed  Frequency:5.785 GHz  Access Point: 24:DE:C6:D8:5E:11   
          Bit Rate=180 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=38/70  Signal level=-72 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.

iwconfigWiFi 不工作时的输出是这样的:

wlp1s0    IEEE 802.11  ESSID:"AP A"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 24:DE:C6:D8:5E:01
          Bit Rate=144.4 Mb/s   Tx-Power=22 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=58/70  Signal level=-52 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:4  Invalid misc:2   Missed beacon:0

lo        no wireless extensions.

lspci添加以防万一的输出:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #3 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)

输出来自dmesg|grep -i wlp1

[13075.528210] wlp1s0: send auth to 24:de:c6:d8:5e:00 (try 1/3)
[13075.535068] wlp1s0: authenticated
[13075.536172] wlp1s0: associate with 24:de:c6:d8:5e:00 (try 1/3)
[13075.592422] wlp1s0: RX ReassocResp from 24:de:c6:d8:5e:00 (capab=0x431 status=0 aid=1)                                                                                   
[13075.595240] wlp1s0: associated
[13615.742696] wlp1s0: deauthenticated from 24:de:c6:d8:5e:00 (Reason: 3=DEAUTH_LEAVING)                                                                                    
[13616.436651] wlp1s0: authenticate with 24:de:c6:d8:5e:10
[13616.447550] wlp1s0: send auth to 24:de:c6:d8:5e:10 (try 1/3)
[13616.461910] wlp1s0: authenticated
[13616.464910] wlp1s0: associate with 24:de:c6:d8:5e:10 (try 1/3)
[13616.467729] wlp1s0: RX AssocResp from 24:de:c6:d8:5e:10 (capab=0x411 status=0 aid=1)                                                                                     
[13616.469656] wlp1s0: associated
[13643.275011] wlp1s0: disconnect from AP 24:de:c6:d8:5e:10 for new auth to 24:de:c6:d8:5e:00                                                                               
[13643.294441] wlp1s0: authenticate with 24:de:c6:d8:5e:00
[13643.301633] wlp1s0: send auth to 24:de:c6:d8:5e:00 (try 1/3)
[13643.313799] wlp1s0: authenticated
[13643.314546] wlp1s0: associate with 24:de:c6:d8:5e:00 (try 1/3)
[13643.374560] wlp1s0: RX ReassocResp from 24:de:c6:d8:5e:00 (capab=0x431 status=0 aid=1)                                                                                   
[13643.376725] wlp1s0: associated
[13645.942816] wlp1s0: deauthenticated from 24:de:c6:d8:5e:00 (Reason: 3=DEAUTH_LEAVING)                                                                                    
[13647.663157] wlp1s0: authenticate with 24:de:c6:d8:5e:10
[13647.676612] wlp1s0: send auth to 24:de:c6:d8:5e:10 (try 1/3)
[13647.690727] wlp1s0: authenticated
[13647.694544] wlp1s0: associate with 24:de:c6:d8:5e:10 (try 1/3)
[13647.698082] wlp1s0: RX AssocResp from 24:de:c6:d8:5e:10 (capab=0x411 status=0 aid=1)                                                                                     
[13647.700552] wlp1s0: associated
[13668.363354] wlp1s0: disconnect from AP 24:de:c6:d8:5e:10 for new auth to 24:de:c6:d8:5e:00                                                                               
[13668.380676] wlp1s0: authenticate with 24:de:c6:d8:5e:00
[13668.391924] wlp1s0: send auth to 24:de:c6:d8:5e:00 (try 1/3)
[13668.404645] wlp1s0: authenticated
[13668.407694] wlp1s0: associate with 24:de:c6:d8:5e:00 (try 1/3)
[13668.466700] wlp1s0: RX ReassocResp from 24:de:c6:d8:5e:00 (capab=0x431 status=0 aid=1)                                                                                   
[13668.470190] wlp1s0: associated
[13749.720151] wlp1s0: deauthenticating from 24:de:c6:d8:5e:00 by local choice (Reason: 3=DEAUTH_LEAVING)                                                                   
[13749.747718] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[13749.777939] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready
[13752.236392] wlp1s0: authenticate with 24:de:c6:d8:5e:01
[13752.245562] wlp1s0: send auth to 24:de:c6:d8:5e:01 (try 1/3)
[13752.249108] wlp1s0: authenticated
[13752.250272] wlp1s0: associate with 24:de:c6:d8:5e:01 (try 1/3)
[13752.254149] wlp1s0: RX AssocResp from 24:de:c6:d8:5e:01 (capab=0x421 status=0 aid=1)                                                                                     
[13752.256603] wlp1s0: associated
[13752.258164] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready

编辑3

我刚刚检查了连接断开时的输出iwconfig,显然唯一改变的是频率从 5 GHz 变为 2.4 GHz。然而,我在网络工作时发出了相同的命令,并且输出也是 2.4 GHz。所以我认为这不是原因。

答案1

我首先要寻找的是内核环形缓冲区中的错误消息,其中消息。我会寻找 WiFi 硬件驱动程序堆栈的调试输出。我通常会看到英特尔驱动程序报告联系分离的事件,包括原因。

目标主机不可达大多数情况下意味着没有到达该目的地的路线。您可以使用 查看路线ip r。您的 IP 地址也可能令人感兴趣:ip aip 手册页

获取更多信息并报告!

相关内容