options iwlwifi 11n_disable=1
我遇到了网络速度慢的问题。我的文件中有一行/etc/modprobe.d/iwlwifi.conf
。根据这一行,我的网络链接速度在 54 Mbps 时停止,实际速度为 20Mbps。
我尝试删除该行。删除(或设置为11n_disable=8
)后,我可以从 wifi 适配器看到,链接速度已增加到 ~700Mbps。但是,即使 wifi 已连接,我也丢失了网络连接。我无法打开任何网页并 ping 任何 IP。
我不知道发生了什么事,有人知道发生了什么吗?
lshw -C network
显示:
WARNING: you should run this program as super-user.
*-network
description: Wireless interface
product: Intel Corporation
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:3a:00.0
logical name: wlp58s0
version: 1a
serial: dc:71:96:33:46:4f
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-73-generic firmware=50.3e391d3e.0 ip=192.168.1.5 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:19 memory:c8100000-c8103fff
*-network
description: Ethernet interface
product: Ethernet Connection (6) I219-V
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: enp0s31f6
version: 11
serial: 04:0e:3c:47:af:4a
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.5-4 latency=0 link=no multicast=yes port=twisted pair
resources: irq:146 memory:c8200000-c821ffff
*-network:0
description: Ethernet interface
physical id: 1
logical name: veth714e766
serial: 8e:22:ba:18:a2:43
size: 10Gbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
*-network:1
description: Ethernet interface
physical id: 2
logical name: veth4b7cee6
serial: 02:56:a7:d9:5a:d3
size: 10Gbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
*-network:2
description: Ethernet interface
physical id: 3
logical name: vethaac915d
serial: f6:e8:eb:ab:17:d0
size: 10Gbit/s
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
sudo lshw -class network -short && nmcli device status
显示:
H/W path Device Class Description
=============================================================
/0/100/1c.7/0 wlp58s0 network Intel Corporation
/0/100/1f.6 enp0s31f6 network Ethernet Connection (6) I219-V
/2 veth714e766 network Ethernet interface
/3 veth4b7cee6 network Ethernet interface
/4 vethaac915d network Ethernet interface
DEVICE TYPE STATE CONNECTION
wlp58s0 wifi connected Jason 5G
br-539ba476673f bridge connected br-539ba476673f
docker0 bridge connected docker0
enp0s31f6 ethernet unavailable --
veth4b7cee6 ethernet unmanaged --
veth714e766 ethernet unmanaged --
vethaac915d ethernet unmanaged --
lo loopback unmanaged --
ping -c3 192.168.1.1
返回:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.5 icmp_seq=1 Destination Host Unreachable
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +1 errors, 100% packet loss, time 2041ms
pipe 3
ping -c3 8.8.8.8
返回:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.5 icmp_seq=1 Destination Host Unreachable
From 192.168.1.5 icmp_seq=2 Destination Host Unreachable
From 192.168.1.5 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2029ms
pipe 3
ls -al /etc/resolv.conf
返回:
lrwxrwxrwx 1 root root 39 Mar 11 2020 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
我尝试打开路由器页面192.168.1.1
,但打不开。我尝试使用 iPhone 热点,但结果一样。网络已连接,但无法上网。
答案1
首先,我们注意到驱动程序加载的是旧固件版本。此外,您安装的固件版本也已过时。让我们更新它。通过以太网、网络共享或任何可能的方式建立有效的互联网连接,打开终端并执行以下操作:
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.190_all.deb
sudo dpkg -i linux-firmware*.deb
重启。有什么改进吗?如果没有,请告诉我们:
sudo dmesg | grep -e wlp -e iwl
粘贴如上的输出并给我们链接。
编辑:症状没有变化。让我们尝试另一个驱动程序参数。从终端:
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi disable_11ax=Y
如果此方法解决了问题,则将其永久化:
sudo -i
echo “options iwlwifi disable_11ax=Y” >> /etc/modprobe.d/iwlwifi.conf
exit
编辑2: 这条信息:
严重错误:模块 iwlwifi 正在使用中。
,,,说明你的iwlwifi.conf文件不正确,请修改为:
# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system. When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
options iwlwifi disable_11ax=Y
答案2
尝试:
sudo echo "options iwlwifi disable_11ax=1" >> /etc/modprobe.d/iwlwifi.conf
sudo reboot