我的 Ubuntu 20.04 笔记本电脑可以通过无线连接,但不能有线连接。ip link
显示:
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: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether 70:5a:0f:d8:0a:f7 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 44:85:00:b5:6d:82 brd ff:ff:ff:ff:ff:ff
我试过了sudo ip link set up dev enp0s31f6
,但是链接仍然断开。
lspci -nnk | grep 0200 -A3
给出:
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection I219-V [8086:1570] (rev 21)
Subsystem: Hewlett-Packard Company Ethernet Connection I219-V [103c:8079]
Kernel driver in use: e1000e
Kernel modules: e1000e
dmesg|grep e1000e
给出:
[ 4.095621] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 4.095622] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 4.095640] e1000e 0000:00:1f.6: enabling device (0000 -> 0002)
[ 4.096716] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[ 4.339134] e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock
[ 4.411453] e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) 70:5a:0f:d8:0a:f7
[ 4.411455] e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection
[ 4.411521] e1000e 0000:00:1f.6 eth0: MAC: 12, PHY: 12, PBA No: FFFFFF-0FF
[ 4.429803] e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0
[ 2049.084704] e1000e: enp0s31f6 NIC Link is Down
有什么可能的解决方案?
答案1
此特定网络设备在启动时会抛出错误,但 Windows 会忽略这些错误,而 Linux 会注意到这些错误。尽管如此,通常可以使用英特尔的最新驱动程序来修复此问题,但确实需要付出更多努力。
尝试这个:
- 下载英特尔最新驱动程序(截至本答案的版本为 3.8.4)
- 提取文件并更改到
src
目录:cd e1000e-3.8.4/src/
- 从内核中删除所有现有的 e1000e 驱动程序:
sudo rmmod e1000e
- 编译驱动模块:
sudo make install
- 使用 modprobe 加载模块:
sudo modprobe e1000e
输出将写入/lib/modules/updates/drivers/net/ethernet/intel/e1000e/e1000e.ko
。此时,您可以通过访问网站或 ping 网络上的另一台机器来测试您的网络。只要一切正常,您就可以使用以下命令使更改永久生效:
sudo dpkg-reconfigure linux-image-$(uname -r)
update-initramfs -u
希望这可以帮助。