wifi已连接AP但无法上网

wifi已连接AP但无法上网

Broadcom BR4321 正在使用b43,但速度缓慢且间歇性,因此我改用它wl。配置更新基本上是替换wlan0wls1但无法连接到互联网。

# lspci -knn
03:00.0 Network controller [0280]: Broadcom Limited BCM4321 802.11a/b/g/n [14e4:4328] (rev 01)
        Subsystem: Apple Inc. AirPort Extreme [106b:0087]
        Kernel driver in use: wl
        Kernel modules: ssb, wl

# ip a
3: wls1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:17:f2:99:7b:9b brd ff:ff:ff:ff:ff:ff
    inet 192.168.43.195/24 brd 192.168.43.255 scope global dynamic wls1
       valid_lft 3388sec preferred_lft 3388sec
    inet6 fe80::217:f2ff:fe99:7b9b/64 scope link
       valid_lft forever preferred_lft forever

# iptables-save
# Generated by xtables-save v1.8.2 on Wed Oct 14 09:34:50 2020
*filter
:INPUT ACCEPT [2560:230581]
:FORWARD ACCEPT [75:39057]
:OUTPUT ACCEPT [1941:305885]
COMMIT
# Completed on Wed Oct 14 09:34:50 2020
# Generated by xtables-save v1.8.2 on Wed Oct 14 09:34:50 2020
*nat
:PREROUTING ACCEPT [70:7158]
:INPUT ACCEPT [46:3604]
:POSTROUTING ACCEPT [11:1383]
:OUTPUT ACCEPT [30:2604]
COMMIT
# Completed on Wed Oct 14 09:34:50 2020
# Generated by xtables-save v1.8.2 on Wed Oct 14 09:34:50 2020
*mangle
:PREROUTING ACCEPT [2701:276272]
:INPUT ACCEPT [2560:230581]
:FORWARD ACCEPT [88:40760]
:OUTPUT ACCEPT [1941:305885]
:POSTROUTING ACCEPT [2158:366414]
COMMIT
# Completed on Wed Oct 14 09:34:50 2020

# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

iface enp2s0 inet manual

iface enx00808e8a9039 inet manual

auto br0
iface br0 inet static
        bridge_ports enp2s0 enx00808e8a9039
        address 192.168.1.51
        netmask 255.255.255.0

auto wls1
allow-hotplug wls1
iface wls1 inet dhcp
        wpa-ssid RWB
        wpa-psk password

# cat /etc/resolv.conf
nameserver 192.168.43.34

重新启动后,计算机连接到我的接入点,但无法使用互联网:

# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
47 packets transmitted, 0 received, 100% packet loss, time 146ms

# ip route
default via 192.168.43.34 dev wls1
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.51
192.168.43.0/24 dev wls1 proto kernel scope link src 192.168.43.195

更新: ping 网关和 IP 邻居

我无法 ping 网关 (192.168.43.34),但如果我切换到另一个可以工作的 wifi 适配器,就可以。

工作适配器:

# ip nei show
192.168.1.19 dev br0 lladdr 04:0e:3c:a0:25:72 REACHABLE
192.168.43.34 dev wlx00e032800384 lladdr 94:65:2d:71:3b:91 DELAY
192.168.1.10 dev br0 lladdr b0:48:7a:80:7e:69 REACHABLE

麻烦的适配器:

# ip nei show
192.168.1.19 dev br0 lladdr 04:0e:3c:a0:25:72 STALE
192.168.43.34 dev wls1 lladdr 94:65:2d:71:3b:91 REACHABLE
192.168.1.10 dev br0 lladdr b0:48:7a:80:7e:69 REACHABLE

(.10是我的win10台式机,.19是我的工作笔记本电脑。)

更新:速度测试

三种不同的适配器。分别是:不同机器上的PCI卡、内置、USB。全部通过同一个接入点。

BC4321 速度慢得像爬行一样——就像拨号一样——这促使我尝试使用wl驱动程序而不是bc43驱动程序。

在此输入图像描述

答案1

通过将配置更改为修复了 wifi 重新连接问题漫游定义一个networkinwpa_supplicant.conf然后/etc/network/interfaces像这样引用它:

### WiFi to Internet: physical plus virtual for each network defined in wpa_supplicant.conf

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
        wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#        wpa-ssid RWB
#        wpa-psk password

allow-hotplug RWB
iface RWB inet dhcp

关于速度:将主 AP 从 2.4GHz 切换到 5GHz 会产生很大的差异,并使用 WiFi 扫描仪应用程序并在房子周围走动监测信号强度,为 2.4GHz 内部网络找到良好的信道。

相关内容