通过我的移动路由器 (tplink mifi m7350) 的连接不再起作用,我不明白为什么。使用“家庭路由器”或手机网络共享时,wifi 连接正常。
手机(android)使用同样的路由器,完美运行:
- 连接到路由器本身http://192.168.0.1显示声明已连接到 PC 和手机的管理应用程序)
- 手机可以上网
从 Ubuntu 我可以看到路由器已连接,并且已分配 IP
$ nmcli device show wlp3s0
GENERAL.DEVICE: wlp3s0
GENERAL.TYPE: wifi
GENERAL.HWADDR: C0:CB:38:37:80:CE
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: TP-Link_8B6B
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/28
IP4.ADDRESS[1]: 192.168.0.136/24
IP4.GATEWAY: 192.168.0.1
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.0.1, mt = 600
IP4.ROUTE[2]: dst = 192.168.0.0/24, nh = 0.0.0.0, mt = 600
IP4.ROUTE[3]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 192.168.0.1
IP6.ADDRESS[1]: fe80::5a50:d171:52d3:a730/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 600
路由表看起来没问题:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default lrkwz-Precision 0.0.0.0 UG 0 0 0 wlp3s0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 wlp3s0
(...)
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp3s0
192.168.0.0 0.0.0.0 255.255.240.0 U 0 0 0 br-5a71a323fc97
192.168.16.0 0.0.0.0 255.255.240.0 U 0 0 0 br-9155247a5500
192.168.32.0 0.0.0.0 255.255.240.0 U 0 0 0 br-72b41f5e1bf7
192.168.48.0 0.0.0.0 255.255.240.0 U 0 0 0 br-04bf5a3cdf1e
192.168.64.0 0.0.0.0 255.255.240.0 U 0 0 0 br-63c28b3c6d04
192.168.80.0 0.0.0.0 255.255.240.0 U 0 0 0 br-0ab70b5d8d47
... 但互联网访问断断续续:例如,我可以请求一个页面,但无法请求两个页面,甚至在同一个页面加载会话中,某些资源被获取,而某些资源则没有。我可以 ping 一次,但第二次失败,并显示“无法访问主机”消息。
前几天apt upgrade
升级了Broadcom的驱动:
Log started: 2019-06-28 17:15:16
Selecting previously unselected package linux-modules-4.15.0-54-generic.
(...)
Removing linux-image-4.15.0-52-generic (4.15.0-52.56) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: bcmwl 6.30.223.271+bdcom (4.15.0-52-generic) (x86_64)
-------- Uninstall Beginning --------
Module: bcmwl
Version: 6.30.223.271+bdcom
Kernel: 4.15.0-52-generic (x86_64)
-------------------------------------
(...)
Setting up linux-headers-4.15.0-54-generic (4.15.0-54.58) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 4.15.0-54-generic
Kernel preparation unnecessary for this kernel. Skipping...
applying patch 0002-Makefile.patch...patching file Makefile
Hunk #1 succeeded at 113 with fuzz 1.
Hunk #2 succeeded at 132 with fuzz 2 (offset 1 line).
applying patch 0003-Make-up-for-missing-init_MUTEX.patch...patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 111 with fuzz 2 (offset 12 lines).
applying patch 0010-change-the-network-interface-name-from-eth-to-wlan.patch...patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 221 (offset -14 lines).
applying patch 0013-gcc.patch...patching file Makefile
applying patch 0019-broadcom-sta-6.30.223.248-3.18-null-pointer-fix.patch...patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 2169 (offset 12 lines).
恢复到基本驱动程序没有任何区别(除了“设备不工作”而不是“该设备正在使用备用驱动程序”提示)
编辑:
Tplink 路由器确实可以与其他 PC 配合使用(我恢复了旧的 Windows Vista 机器和 Android 手机)。
Ubuntu PC 上的 Wifi 使用另一个路由器工作:
$ iwconfig wlp3s0
wlp3s0 IEEE 802.11 ESSID:"lrlwz-A5"
Mode:Managed Frequency:2.412 GHz Access Point: D4:AE:05:90:F8:DF
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
但 Tplink wifi 仍然没有用(即使在硬件重置和更换 SIM 卡后):
$ iwconfig wlp3s0
wlp3s0 IEEE 802.11 ESSID:"TP-Link_8B6B"
Mode:Managed Frequency:2.442 GHz Access Point: C4:71:54:EB:8B:6B
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
关于该卡的一般信息:
$ sudo lshw -class network
(...)
*-network
description: Wireless interface
product: BCM43224 802.11a/b/g/n
vendor: Broadcom Inc. and subsidiaries
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 01
serial: c0:cb:38:37:80:ce
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=6.30.223.271 (r587334) ip=192.168.43.43 latency=0 multicast=yes wireless=IEEE 802.11
resources: irq:17 memory:e6e00000-e6e03fff
我该如何诊断这个问题?
答案1
很简单 XD
- 断开所有 wifi
- 使用简单明了的方法,
ifconfig
我注意到虚拟设备使用 192.168.0.1 与路由器默认地址冲突 - 虚拟设备是docker创建的网络,所以我直接删除了它
我没有其他证据证明地址冲突;这个https://askubuntu.com/a/54585/18562可能是正确的解决方案。