WiFi 已连接,但没有互联网 - MacBookPro

WiFi 已连接,但没有互联网 - MacBookPro

由于我对 Linux 不熟悉,所以我只能根据在互联网上搜索到的信息来做决定。

基本上,我的 Mac 连接到家里的 WiFi,获取 IP 和所需的一切,但是... 没有互联网作为额外奖励。右上角的图标显示为带有 ? 的 wifi 标志。我在终端中得到的信息表明它可以工作,只是速度很慢。但通过 gui 或终端进行的任何更新,浏览器都显示没有互联网连接(我想是请求超时)。

不过通过有线连接可以正常工作。我的手机连接到同一个 WiFi 没有任何问题,可以正常连接互联网。

请参阅lspci-knn| grep Net-A3

0b:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4321 802.11a/b/g/n [14e4:4328] (rev 05)
    Subsystem: Apple Inc. AirPort Extreme [106b:008c]
    Kernel driver in use: wl
    Kernel modules: ssb, wl

是否配置

ens5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.17  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::222:41ff:fe3a:2a39  prefixlen 64  scopeid 0x20<link>
        ether 00:22:41:3a:2a:39  txqueuelen 1000  (Ethernet)
        RX packets 1366  bytes 655344 (655.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1639  bytes 180794 (180.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1841  bytes 184586 (184.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1841  bytes 184586 (184.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wls4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.18  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::223:12ff:fe22:7ee0  prefixlen 64  scopeid 0x20<link>
        ether 00:23:12:22:7e:e0  txqueuelen 1000  (Ethernet)
        RX packets 104  bytes 9306 (9.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 158113
        TX packets 498  bytes 46487 (46.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16

ping 192.168.2.1路由器

PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=7 ttl=255 time=11.3 ms
64 bytes from 192.168.2.1: icmp_seq=8 ttl=255 time=4.78 ms
64 bytes from 192.168.2.1: icmp_seq=9 ttl=255 time=316 ms
64 bytes from 192.168.2.1: icmp_seq=14 ttl=255 time=212 ms
64 bytes from 192.168.2.1: icmp_seq=19 ttl=255 time=212 ms
64 bytes from 192.168.2.1: icmp_seq=29 ttl=255 time=220 ms
From 192.168.2.18 icmp_seq=30 Destination Host Unreachable
From 192.168.2.18 icmp_seq=31 Destination Host Unreachable
From 192.168.2.18 icmp_seq=32 Destination Host Unreachable
^C
--- 192.168.2.1 ping statistics ---
34 packets transmitted, 6 received, +3 errors, 82,3529% packet loss, time 33626ms
rtt min/avg/max/mdev = 4.782/162.751/316.144/115.161 ms, pipe 4

ping google.com测试 DNS 是否有效

PING google.com (172.217.16.46) 56(84) bytes of data.
64 bytes from 172.217.16.46: icmp_seq=1 ttl=118 time=336 ms
From 192.168.2.18 icmp_seq=2 Destination Host Unreachable
64 bytes from 172.217.16.46: icmp_seq=11 ttl=118 time=228 ms
^C
--- google.com ping statistics ---
18 packets transmitted, 2 received, +1 errors, 88,8889% packet loss, time 45744ms
rtt min/avg/max/mdev = 227.951/282.041/336.132/54.090 ms

答案1

听起来您需要重新配置resolvconf

sudo dpkg-reconfigure resolvconf

对“准备 /etc/resolve.conf 进行动态更新吗?”回答“是”,然后重新启动。

答案2

似乎你的驱动程序有误。连接到互联网并运行

sudo apt install firmware-b43-installer
sudo apt purge bcmwl-kernel-source

然后重新启动。

相关内容