我的谷歌搜索功能在这方面失败了;研究下一步该去哪里让我感到困惑。
我有一台 2017 年左右的 MSI 笔记本电脑,上面安装了 Kubuntu 22.04。我在酒店前台工作,休息期间我经常在个人设备上使用访客 wifi。虽然 wifi 不是很好,但通常运行良好。
从 2023 年 3 月 1 日左右开始(提供日期以备更新相关...)我结束了三天周末回来,发现我现在工作时遇到了网络问题。
过程如下:我自动连接到访客网络。我使用 Mozilla VPN,这样可以很容易地判断网络何时断线。一开始一切都会正常工作。我通常可以使用 1 到 10 分钟的互联网,然后……一切都停止了。它仍然连接到网络,但 MVPN 有一个红色的小“无信号”图标。这种情况持续了大约一分钟,也许一分半钟?我没有计时,但它断线的时间非常一致。这段时间过后,我收到一条通知,显示“IP 配置不可用”,计算机断开连接并重新连接到网络,它立即开始再次工作。
我可以手动断开连接并重新连接,即使时间很短,它也会立即工作。由于这种情况似乎每 2-3 分钟发生一次(平均),我显然不想这样做。(补充:在输入这段文字时,手动切换它显然决定停止工作
关于我的系统的一些可能相关的信息(如果需要请询问更多信息)
- 笔记本电脑型号:MS-16K2
- Wifi 适配器:英特尔公司无线 8265 / 8275(在网络设置中显示为 wlp62s0)
- Ubuntu 20.04
- 内核版本:5.15.0-60-generic 或 5.15.0-67-generic(这两个都是我在故障排除时安装的……行为完全相同)
- 我没有改动过驱动程序,或者任何与网络(或设备)相关的系统设置。
网络:
- 我遇到问题的网络由 AT&T 提供(我的家庭网络也是如此)
- 同事们提到,问题出现那天我上班时,WiFi 出现了问题,但没人能具体说明发生了什么,也不知道技术支持人员在做什么。据我了解,这似乎与楼上的开关不工作有关,可能与大厅区域的开关不工作有关?
我尝试过的事情:
- 我将 IPv4 设置为“手动”,并为自己设置了一个静态 IP 地址。我试了几次。这可以连接到互联网,但我遇到了与以前完全相同的问题。
- 我禁用了 IPv4,并尝试让其使用 IPv6。连接显示“否”。它需要 IPv4。
- 我在家里启动了笔记本电脑,然后摆弄了一个多小时。没问题!
- 我拨打了为客人/员工提供的热线电话,以寻求 ISP 的网络和连接问题帮助。帮助我的人能够在网络上看到我的笔记本电脑(通过 mac 地址识别),并声称与我的设备的连接稳定。他没有发现任何问题。
- 我完全关闭了我的 VPN,但没有任何变化。
- 我停了下来一个可以运行 ping 测试的网站无限期地放手。奇怪的是,在运行它时,似乎我可以保持连接更长时间,直到它崩溃?但它仍然如此。
- 我尝试在 Android 平板电脑上进行 ping 测试和常规监控,没有发现任何问题。我的同事似乎没有遇到任何问题。
到现在为止,我陷入了困境。我在网上找到的所有有类似错误的问题都是那些没有联系的人提出的。
编辑:我现在尝试了其他酒店的网络,没有任何问题。
我该怎么做才能诊断这个问题?我还能尝试其他什么方法来缩小问题的范围,确定是电脑还是网络导致了这个问题?
根据建议,我在终端中运行了这些命令:
服务 NetworkManager 状态
● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-03-15 15:41:36 CDT; 2min 49s ago
Docs: man:NetworkManager(8)
Main PID: 800 (NetworkManager)
Tasks: 3 (limit: 28568)
Memory: 9.7M
CPU: 1.018s
CGroup: /system.slice/NetworkManager.service
└─800 /usr/sbin/NetworkManager --no-daemon
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5151] device (p2p-dev-wlp62s0): supplicant management interface state: disconnected -> authenticating
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5206] device (wlp62s0): supplicant interface state: authenticating -> associating
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5207] device (p2p-dev-wlp62s0): supplicant management interface state: authenticating -> associating
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5430] device (wlp62s0): supplicant interface state: associating -> completed
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5431] device (p2p-dev-wlp62s0): supplicant management interface state: associating -> completed
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5431] device (wlp62s0): ip:dhcp4: restarting
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5569] dhcp4 (wlp62s0): canceled DHCP transaction
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5570] dhcp4 (wlp62s0): activation: beginning transaction (timeout in 45 seconds)
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5570] dhcp4 (wlp62s0): state changed no lease
Mar 15 15:44:07 mylaptop NetworkManager[800]: <info> [1678913047.5571] dhcp4 (wlp62s0): activation: beginning transaction (timeout in 45 seconds)
IP 链接;IP 路由
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp61s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 4c:cc:6a:de:19:d9 brd ff:ff:ff:ff:ff:ff
3: wlp62s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 00:28:f8:81:af:4c brd ff:ff:ff:ff:ff:ff
6: moz0: <POINTOPOINT,NOARP,PROMISC,DEBUG,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/none
default via 10.20.0.1 dev wlp62s0 proto dhcp metric 600
10.20.0.0/20 dev wlp62s0 proto kernel scope link src 10.20.15.195 metric 600
169.254.0.0/16 dev moz0 scope link metric 1000
我也跑了,sudo journalctl -b 0 -U NetworkManager
但只得到了无法解析时间戳:网络管理器所以我查找了命令并改用了它sudo journalctl _COMM=NetworkManager
。我截断了输出的前 250 多行,因为它太长了,而且有些内容似乎不相关,但这是我得到的似乎跨越了这些断开连接期之一的内容。
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.1258] manager: NetworkManager state is now CONNECTED_LOCAL
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.1264] device (wlp62s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.1488] dhcp4 (wlp62s0): canceled DHCP transaction
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.3054] device (wlp62s0): supplicant interface state: completed -> disconnected
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.3055] device (p2p-dev-wlp62s0): supplicant management interface state: completed -> disconnected
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6523] policy: auto-activating connection 'problem_wifi' (5510ab7a-66f1-415b-8f3d-c2794f4f91e6)
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6537] device (wlp62s0): Activation: starting connection 'problem_wifi' (5510ab7a-66f1-415b-8f3d-c2794f4f91e6)
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6540] device (wlp62s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6550] manager: NetworkManager state is now CONNECTING
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6559] device (wlp62s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6568] device (wlp62s0): Activation: (wifi) connection 'problem_wifi' requires no security. No secrets needed.
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6569] Config: added 'ssid' value 'problem_wifi'
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6570] Config: added 'scan_ssid' value '1'
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6570] Config: added 'bgscan' value 'simple:30:-70:86400'
Mar 10 17:56:02 mylaptop NetworkManager[810]: <info> [1678492562.6571] Config: added 'key_mgmt' value 'NONE'
Mar 10 17:56:03 mylaptop NetworkManager[810]: <info> [1678492563.6794] device (wlp62s0): supplicant interface state: disconnected -> scanning
Mar 10 17:56:03 mylaptop NetworkManager[810]: <info> [1678492563.6795] device (p2p-dev-wlp62s0): supplicant management interface state: disconnected -> scanning
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.3878] device (wlp62s0): supplicant interface state: scanning -> authenticating
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.3878] device (p2p-dev-wlp62s0): supplicant management interface state: scanning -> authenticating
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.3933] device (wlp62s0): supplicant interface state: authenticating -> associating
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.3934] device (p2p-dev-wlp62s0): supplicant management interface state: authenticating -> associating
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4052] device (wlp62s0): supplicant interface state: associating -> completed
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4053] device (wlp62s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "problem_wifi"
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4054] device (p2p-dev-wlp62s0): supplicant management interface state: associating -> completed
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4063] device (wlp62s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4073] dhcp4 (wlp62s0): activation: beginning transaction (timeout in 45 seconds)
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4248] dhcp4 (wlp62s0): state changed new lease, address=10.20.15.195
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4300] device (wlp62s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4365] device (wlp62s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4375] device (wlp62s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4386] manager: NetworkManager state is now CONNECTED_LOCAL
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4403] manager: NetworkManager state is now CONNECTED_SITE
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4406] policy: set 'problem_wifi' (wlp62s0) as default for IPv4 routing and DNS
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4420] device (wlp62s0): Activation: successful, device activated.
Mar 10 17:56:04 mylaptop NetworkManager[810]: <info> [1678492564.4427] manager: NetworkManager state is now CONNECTED_GLOBAL
Mar 10 17:58:28 mylaptop NetworkManager[810]: <info> [1678492708.6832] device (wlp62s0): supplicant interface state: completed -> disconnected
Mar 10 17:58:28 mylaptop NetworkManager[810]: <info> [1678492708.6833] device (p2p-dev-wlp62s0): supplicant management interface state: completed -> disconnected
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.8813] device (wlp62s0): supplicant interface state: disconnected -> authenticating
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.8814] device (p2p-dev-wlp62s0): supplicant management interface state: disconnected -> authenticating
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.8871] device (wlp62s0): supplicant interface state: authenticating -> associating
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.8872] device (p2p-dev-wlp62s0): supplicant management interface state: authenticating -> associating
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.9040] device (wlp62s0): supplicant interface state: associating -> completed
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.9041] device (p2p-dev-wlp62s0): supplicant management interface state: associating -> completed
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.9042] device (wlp62s0): ip:dhcp4: restarting
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.9328] dhcp4 (wlp62s0): canceled DHCP transaction
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.9329] dhcp4 (wlp62s0): activation: beginning transaction (timeout in 45 seconds)
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.9329] dhcp4 (wlp62s0): state changed no lease
Mar 10 17:58:30 mylaptop NetworkManager[810]: <info> [1678492710.9330] dhcp4 (wlp62s0): activation: beginning transaction (timeout in 45 seconds)
Mar 10 17:59:16 mylaptop NetworkManager[810]: <info> [1678492756.1288] device (wlp62s0): state change: activated -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Mar 10 17:59:16 mylaptop NetworkManager[810]: <warn> [1678492756.1294] device (wlp62s0): Activation: failed for connection 'problem_wifi'
Mar 10 17:59:16 mylaptop NetworkManager[810]: <info> [1678492756.1298] manager: NetworkManager state is now CONNECTED_LOCAL
Mar 10 17:59:16 mylaptop NetworkManager[810]: <info> [1678492756.1305] device (wlp62s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Mar 10 17:59:16 mylaptop NetworkManager[810]: <info> [1678492756.1687] dhcp4 (wlp62s0): canceled DHCP transaction
Mar 10 17:59:16 mylaptop NetworkManager[810]: <info> [1678492756.4387] device (wlp62s0): supplicant interface state: completed -> disconnected
Mar 10 17:59:16 mylaptop NetworkManager[810]: <info> [1678492756.4388] device (p2p-dev-wlp62s0): supplicant management interface state: completed -> disconnected
(该网络未命名为 problem_network,我在输出文件中删除了该名称)
编辑:好的,我已经为此苦思冥想了几个星期,并且还有一些细节:
- 这个问题不只存在于这家酒店的 wifi 上,还存在于特定区域的 wifi 上。当我在大堂时,我遇到了这个问题。当我在大楼的另一端(在另一个接入点上)时,我就不会遇到这个问题。大楼里有 34 个接入点(无论如何,根据技术支持的说法),我不知道它们都在哪里,所以我不知道我是否能把范围缩小到很小。
- 当技术支持人员输入我设备的 MAC 地址、IP 和我使用的促销代码时,系统提示无效。同样的促销代码我已经用了几个月了,但系统提示无效!然而,当她输入一个我从未听说过的促销代码时,她的系统提示有效,但问题并没有解决。
我想是时候启动 Windows(呃)并看看问题是否仍然存在。
此时我不指望询问 Ubuntu 能有所帮助,但我会继续更新它,直到我弄明白或不得不承认失败。
圣母玛利亚,谢谢你的 wifi 省电小窍门!我简直不敢相信竟然这么简单。
答案1
随机的,但你试过禁用 Wi-Fi 省电功能吗?我在家里最远的角落使用笔记本电脑时,偶尔会出现连接问题,我已将该答案中的步骤作为我标准的“重新安装 Linux”流程的一部分。值得一试吗?