![使用新网卡(22.04.1)时网络未被认领](https://linux22.com/image/1028909/%E4%BD%BF%E7%94%A8%E6%96%B0%E7%BD%91%E5%8D%A1%EF%BC%8822.04.1%EF%BC%89%E6%97%B6%E7%BD%91%E7%BB%9C%E6%9C%AA%E8%A2%AB%E8%AE%A4%E9%A2%86.png)
我在 Ubuntu 22.04.1 电脑上安装了新的 Intel X540 10g 网卡,但很难让它工作(内置 1gbps 以太网端口正在工作)。lshw 显示网络 UNCLAIMED - 有人知道我做错了什么或我可以做些什么来让它运行吗?详情如下,谢谢!
lshw 级网络:
*-network:0 UNCLAIMED
description: Ethernet controller
product: Ethernet Controller 10-Gigabit X540-AT2
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:49:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi msix pciexpress cap_list
configuration: latency=0
resources: memory:f8700000-f877ffff
*-network:1 UNCLAIMED
description: Ethernet controller
product: Ethernet Controller 10-Gigabit X540-AT2
vendor: Intel Corporation
physical id: 0.1
bus info: pci@0000:49:00.1
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi msix pciexpress cap_list
configuration: latency=0
resources: memory:f8780000-f87fffff
lspci | grep -i 以太:
44:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
45:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
49:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 (rev 01)
49:00.1 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 (rev 01)
lspci -knn | grep Net -A3;rfkill 列表:
44:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
DeviceName: Onboard LAN RTL8111
Subsystem: Micro-Star International Co., Ltd. [MSI] I211 Gigabit Network Connection [1462:7c60]
Kernel driver in use: igb
Kernel modules: igb
45:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
Subsystem: Micro-Star International Co., Ltd. [MSI] I211 Gigabit Network Connection [1462:7c60]
Kernel driver in use: igb
Kernel modules: igb
46:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP [1022:1485]
我确实尝试安装英特尔的驱动程序: lsmod | grep ixgb:
ixgbe 417792 0
dca 16384 2 igb,ixgbe
修改信息 ixgbe:
filename: /lib/modules/5.15.0-56-generic/updates/drivers/net/ethernet/intel/ixgbe/ixgbe.ko
version: 5.18.6
license: GPL
description: Intel(R) 10GbE PCI Express Linux Network Driver
author: Intel Corporation, <[email protected]>
srcversion: 2C6DB0ACD63753C204814B9
alias: pci:v00008086d000015E5sv*sd*bc*sc*i*
alias: pci:v00008086d000015E4sv*sd*bc*sc*i*
alias: pci:v00008086d000015CEsv*sd*bc*sc*i*
alias: pci:v00008086d000015CCsv*sd*bc*sc*i*
alias: pci:v00008086d000015CAsv*sd*bc*sc*i*
alias: pci:v00008086d000015C8sv*sd*bc*sc*i*
alias: pci:v00008086d000015C7sv*sd*bc*sc*i*
alias: pci:v00008086d000015C6sv*sd*bc*sc*i*
alias: pci:v00008086d000015C4sv*sd*bc*sc*i*
alias: pci:v00008086d000015C3sv*sd*bc*sc*i*
alias: pci:v00008086d000015C2sv*sd*bc*sc*i*
alias: pci:v00008086d000015AEsv*sd*bc*sc*i*
alias: pci:v00008086d000015ADsv*sd*bc*sc*i*
alias: pci:v00008086d000015ACsv*sd*bc*sc*i*
alias: pci:v00008086d000015ABsv*sd*bc*sc*i*
alias: pci:v00008086d000015B0sv*sd*bc*sc*i*
alias: pci:v00008086d000015AAsv*sd*bc*sc*i*
alias: pci:v00008086d000015D1sv*sd*bc*sc*i*
alias: pci:v00008086d00001563sv*sd*bc*sc*i*
alias: pci:v00008086d00001560sv*sd*bc*sc*i*
alias: pci:v00008086d00001558sv*sd*bc*sc*i*
alias: pci:v00008086d0000154Asv*sd*bc*sc*i*
alias: pci:v00008086d00001557sv*sd*bc*sc*i*
alias: pci:v00008086d0000154Dsv*sd*bc*sc*i*
alias: pci:v00008086d00001528sv*sd*bc*sc*i*
alias: pci:v00008086d000010F8sv*sd*bc*sc*i*
alias: pci:v00008086d0000151Csv*sd*bc*sc*i*
alias: pci:v00008086d00001529sv*sd*bc*sc*i*
alias: pci:v00008086d0000152Asv*sd*bc*sc*i*
alias: pci:v00008086d000010F9sv*sd*bc*sc*i*
alias: pci:v00008086d00001514sv*sd*bc*sc*i*
alias: pci:v00008086d00001507sv*sd*bc*sc*i*
alias: pci:v00008086d000010FBsv*sd*bc*sc*i*
alias: pci:v00008086d00001517sv*sd*bc*sc*i*
alias: pci:v00008086d000010FCsv*sd*bc*sc*i*
alias: pci:v00008086d000010F7sv*sd*bc*sc*i*
alias: pci:v00008086d00001508sv*sd*bc*sc*i*
alias: pci:v00008086d000010DBsv*sd*bc*sc*i*
alias: pci:v00008086d000010F4sv*sd*bc*sc*i*
alias: pci:v00008086d000010E1sv*sd*bc*sc*i*
alias: pci:v00008086d000010F1sv*sd*bc*sc*i*
alias: pci:v00008086d000010ECsv*sd*bc*sc*i*
alias: pci:v00008086d000010DDsv*sd*bc*sc*i*
alias: pci:v00008086d0000150Bsv*sd*bc*sc*i*
alias: pci:v00008086d000010C8sv*sd*bc*sc*i*
alias: pci:v00008086d000010C7sv*sd*bc*sc*i*
alias: pci:v00008086d000010C6sv*sd*bc*sc*i*
alias: pci:v00008086d000010B6sv*sd*bc*sc*i*
depends: dca
retpoline: Y
name: ixgbe
vermagic: 5.15.0-56-generic SMP mod_unload modversions
parm: IntMode:Change Interrupt Mode (0=Legacy, 1=MSI, 2=MSI-X), default 2 (array of int)
parm: InterruptType:Change Interrupt Mode (0=Legacy, 1=MSI, 2=MSI-X), default IntMode (deprecated) (array of int)
parm: MQ:Disable or enable Multiple Queues, default 1 (array of int)
parm: DCA:Disable or enable Direct Cache Access, 0=disabled, 1=descriptor only, 2=descriptor and data (array of int)
parm: RSS:Number of Receive-Side Scaling Descriptor Queues, default 0=number of cpus (array of int)
parm: VMDQ:Number of Virtual Machine Device Queues: 0/1 = disable (1 queue) 2-16 enable (default=8) (array of int)
parm: max_vfs:Number of Virtual Functions: 0 = disable (default), 1-63 = enable this many VFs (array of int)
parm: VEPA:VEPA Bridge Mode: 0 = VEB (default), 1 = VEPA (array of int)
parm: InterruptThrottleRate:Maximum interrupts per second, per vector, (0,1,956-488281), default 1 (array of int)
parm: LLIPort:Low Latency Interrupt TCP Port (0-65535) (array of int)
parm: LLIPush:Low Latency Interrupt on TCP Push flag (0,1) (array of int)
parm: LLISize:Low Latency Interrupt on Packet Size (0-1500) (array of int)
parm: LLIEType:Low Latency Interrupt Ethernet Protocol Type (array of int)
parm: LLIVLANP:Low Latency Interrupt on VLAN priority threshold (array of int)
parm: FdirPballoc:Flow Director packet buffer allocation level:
1 = 8k hash filters or 2k perfect filters
2 = 16k hash filters or 4k perfect filters
3 = 32k hash filters or 8k perfect filters (array of int)
parm: AtrSampleRate:Software ATR Tx packet sample rate (array of int)
parm: FCoE:Disable or enable FCoE Offload, default 1 (array of int)
parm: MDD:Malicious Driver Detection: (0,1), default 1 = on (array of int)
parm: LRO:Large Receive Offload (0,1), default 0 = off (array of int)
parm: allow_unsupported_sfp:Allow unsupported and untested SFP+ modules on 82599 based adapters, default 0 = Disable (array of int)
parm: dmac_watchdog:DMA coalescing watchdog in microseconds (0,41-10000), default 0 = off (array of int)
parm: vxlan_rx:VXLAN receive checksum offload (0,1), default 1 = Enable (array of int)
[编辑添加请求的输出]
请参阅lspci-nnk| grep 0200 -A3
44:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
DeviceName: Onboard LAN RTL8111
Subsystem: Micro-Star International Co., Ltd. [MSI] I211 Gigabit Network Connection [1462:7c60]
Kernel driver in use: igb
--
45:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
Subsystem: Micro-Star International Co., Ltd. [MSI] I211 Gigabit Network Connection [1462:7c60]
Kernel driver in use: igb
Kernel modules: igb
--
49:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
Subsystem: Beijing Sinead Technology Co., Ltd. Ethernet Controller 10-Gigabit X540-AT2 [1dcf:031b]
Kernel modules: ixgbe
49:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
Subsystem: Beijing Sinead Technology Co., Ltd. Ethernet Controller 10-Gigabit X540-AT2 [1dcf:031b]
Kernel modules: ixgbe
4a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a]
sudo modprobe ixgbe && sudo dmesg | grep ixgbe
[ 0.997958] ixgbe: loading out-of-tree module taints kernel.
[ 0.998081] ixgbe: module verification failed: signature and/or required key missing - tainting kernel
[ 0.999798] ixgbe: probe of 0000:49:00.0 failed with error -5
[ 0.999875] ixgbe: probe of 0000:49:00.1 failed with error -5
答案1
TLDR:您需要一个 6.x 内核,并且 22.04 上的 HWE 内核包含它。
我在运行 X553 芯片组的系统上遇到了同样的问题。有趣的是,芯片上的千兆端口没问题,但 10 千兆端口却消失了。更有趣的是,当我最初设置时,它们可以正常工作,但在更新后就停止了。
简而言之,内核 5.10 版的 ixgbe 驱动程序存在错误。我思考一些旧版本不受影响。您需要 6.x 内核 - 它肯定能正常工作。
尝试构建内核模块失败,主要是因为我过去的错误,但是应该工作。你需要签署它 - 似乎有合乎逻辑的指示ubuntu 的博客,但我的机器是远程的,目前在 CSM 上,你需要启用安全启动并添加自己的密钥。不过,6.x 内核似乎已经修复了这个问题,安装它会让你得到一个正常工作的在内核驱动程序中尽量减少麻烦。
sudo apt install linux-generic-hwe-22.04
将安装更新的内核
5.15.0-101-generic 是本文发布时最新的非 HWE 内核,我系统上的 10 GB 端口无法使用。6.5.0-26-generic 是 HWE 内核 - 包括可用的 ixgbe 驱动程序。我从评论中得知这是该内核系列的问题在家任职,评论将范围缩小到具体提交