![Ubuntu 不断在 2.4 和 5Ghz 接入点之间切换](https://linux22.com/image/936664/Ubuntu%20%E4%B8%8D%E6%96%AD%E5%9C%A8%202.4%20%E5%92%8C%205Ghz%20%E6%8E%A5%E5%85%A5%E7%82%B9%E4%B9%8B%E9%97%B4%E5%88%87%E6%8D%A2.png)
我遇到了一个问题,我的 wifi 每隔几秒钟就会不断掉线。我调查了一下,似乎它在我的 2.4 和 5Ghz 接入点之间反复切换。以下是日志dmesg
:
[89032.530655] wlp4s0: associated
[89032.965603] wlp4s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 9c:69:d1:c4:40:d5
[89049.876628] wlp4s0: Connection to AP 9c:69:d1:c4:40:d5 lost
[89051.068203] wlp4s0: authenticate with 9c:69:d1:c4:40:d4
[89051.070021] wlp4s0: send auth to 9c:69:d1:c4:40:d4 (try 1/3)
[89051.096029] wlp4s0: authenticated
[89051.099922] wlp4s0: associate with 9c:69:d1:c4:40:d4 (try 1/3)
[89051.103659] wlp4s0: RX AssocResp from 9c:69:d1:c4:40:d4 (capab=0x411 status=0 aid=2)
[89051.108251] wlp4s0: associated
[89055.223602] wlp4s0: disconnect from AP 9c:69:d1:c4:40:d4 for new auth to 9c:69:d1:c4:40:d5
[89055.226707] wlp4s0: authenticate with 9c:69:d1:c4:40:d5
[89055.228727] wlp4s0: send auth to 9c:69:d1:c4:40:d5 (try 1/3)
[89055.255620] wlp4s0: authenticated
[89055.255947] wlp4s0: associate with 9c:69:d1:c4:40:d5 (try 1/3)
[89055.256970] wlp4s0: RX ReassocResp from 9c:69:d1:c4:40:d5 (capab=0x11 status=0 aid=1)
[89055.264991] wlp4s0: associated
[89055.493829] wlp4s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 9c:69:d1:c4:40:d5
[89062.984360] wlp4s0: Connection to AP 9c:69:d1:c4:40:d5 lost
[89063.201360] wlp4s0: authenticate with 9c:69:d1:c4:40:d4
[89063.204176] wlp4s0: send auth to 9c:69:d1:c4:40:d4 (try 1/3)
[89063.234594] wlp4s0: authenticated
[89063.236037] wlp4s0: associate with 9c:69:d1:c4:40:d4 (try 1/3)
[89063.241114] wlp4s0: RX AssocResp from 9c:69:d1:c4:40:d4 (capab=0x411 status=0 aid=2)
[89063.246862] wlp4s0: associated
[89065.489145] wlp4s0: disconnect from AP 9c:69:d1:c4:40:d4 for new auth to 9c:69:d1:c4:40:d5
[89065.492204] wlp4s0: authenticate with 9c:69:d1:c4:40:d5
[89065.494245] wlp4s0: send auth to 9c:69:d1:c4:40:d5 (try 1/3)
[89065.522102] wlp4s0: authenticated
[89065.524058] wlp4s0: associate with 9c:69:d1:c4:40:d5 (try 1/3)
[89065.535076] wlp4s0: RX ReassocResp from 9c:69:d1:c4:40:d5 (capab=0x11 status=0 aid=1)
[89065.536913] wlp4s0: associated
[89065.631303] wlp4s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 9c:69:d1:c4:40:d5
[89075.682628] wlp4s0: Connection to AP 9c:69:d1:c4:40:d5 lost
[89075.856175] wlp4s0: Connection to AP 00:00:00:00:00:00 lost
[89076.583517] wlp4s0: authenticate with 9c:69:d1:c4:40:d4
[89076.585590] wlp4s0: send auth to 9c:69:d1:c4:40:d4 (try 1/3)
[89076.612634] wlp4s0: authenticated
[89076.616164] wlp4s0: associate with 9c:69:d1:c4:40:d4 (try 1/3)
[89076.620538] wlp4s0: RX AssocResp from 9c:69:d1:c4:40:d4 (capab=0x411 status=0 aid=2)
[89076.625083] wlp4s0: associated
每次显示 时,互联网连接就会停止工作,Limiting TX power to 23 (23 - 0) dBm as advertised by 9c:69:d1:c4:40:d5
而当显示 时,互联网连接就会再次开始工作associated
。
sudo iwlist wlp4s0 scan
显示这9c:69:d1:c4:40:d4
是我的 2.4Ghz 和9c:69:d1:c4:40:d5
5Ghz 接入点。
我有一张 Intel ax200 pcie wifi 卡。也可能是某种节能问题?(限制 tx 功率?)
答案1
您的无线网络可能因为电源管理而掉线;电源管理是指在非活动期间,卡会部分关闭以节省电池电量,然后在活动恢复时无缝地重新通电的功能。让我们禁用省电功能,看看是否有帮助。从终端:
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*
您的无线网络可能会掉线,因为其连接的频道突然发生了变化。
请检查路由器中的设置。首选 WPA2-AES;而不是任何 WPA 和 WPA2 混合模式,当然也不是 TKIP。其次,如果您的路由器支持 N 速度,那么在 2.4 GHz 频段使用 20 MHz 的信道宽度(而不是自动 20/40 MHz)可能会获得更好的连接性,尽管它可能会影响 N 速度。我建议使用固定信道,1、6 或 11,而不是自动信道选择。此外,请确保路由器未设置为仅使用 N 速度;首选自动 B、G 和 N。
您的无线网络可能会掉线,因为有两个无线接入点具有相同的名称和密码。当您拥有同一路由器的 2.4 gHz 段和 5 gHz 段时,这种情况很常见。您的无线网络可能正在漫游,寻找更好的连接。如果是这种情况,我建议您重命名接入点;例如 myrouter2.4 和 myrouter5。
完成这些更改后,重新启动路由器。
接下来,我建议明确设置你的监管范围。检查你的:
sudo iw reg get
如果您选择 00,则这是一个通用的设置。请在此处查找您的设置:http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2然后暂时设置一下:
sudo iw reg set IS
当然,如果不是冰岛,请替换您的国家代码。永久设置它:
sudo nano /etc/default/crda
将最后一行改为:
REGDOMAIN=IS
仔细校对,保存并关闭文本编辑器。
有沒有改善?