我有一台带有华硕 P9D-I 主板的服务器。它有两个板载 Intel 网卡:
# lspci -nn | grep Eth
01:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03)
02:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03)
服务器正在运行带有最新向后移植内核的 Debian wheezy:
# cat /etc/debian_version
7.2
# uname -a
Linux hostname 3.10-0.bpo.3-amd64 #1 SMP Debian 3.10.11-1~bpo70+1 (2013-09-24) x86_64 GNU/Linux
# dpkg -l | grep -E '(linux-image-amd64|linux-image-3.10)'
ii linux-image-3.10-0.bpo.3-amd64 3.10.11-1~bpo70+1 amd64 Linux 3.10 for 64-bit PCs
ii linux-image-amd64 3.10+52~bpo70+1 amd64 Linux for 64-bit PCs (meta-package)
以太网接口做出现在ifconfig -a
:
# ifconfig -a
eth0 Link encap:Ethernet HWaddr ac:22:0b:8b:30:a7
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:dfe00000-dfe80000
eth1 Link encap:Ethernet HWaddr ac:22:0b:8b:30:a8
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:dfd00000-dfd80000
[...]
但由于某种原因,我实际上无法将它们用于任何用途:
# ifconfig eth0 up
SIOCSIFFLAGS: No such device
# ifconfig eth1 up
SIOCSIFFLAGS: No such device
# ethtool eth0
Settings for eth0:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
# ethtool eth1
Settings for eth1:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
dmesg
负责的司机似乎没有任何有趣的输出igb
:
# dmesg | grep igb
[ 0.555167] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.0.3-k
[ 0.555168] igb: Copyright (c) 2007-2013 Intel Corporation.
[ 0.555669] igb 0000:01:00.0: irq 44 for MSI/MSI-X
[ 0.555674] igb 0000:01:00.0: irq 45 for MSI/MSI-X
[ 0.555679] igb 0000:01:00.0: irq 46 for MSI/MSI-X
[ 0.555683] igb 0000:01:00.0: irq 47 for MSI/MSI-X
[ 0.555689] igb 0000:01:00.0: irq 48 for MSI/MSI-X
[ 0.599539] igb 0000:01:00.0: added PHC on eth0
[ 0.599551] igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 0.599553] igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) ac:22:0b:8b:30:a7
[ 0.599732] igb 0000:01:00.0: eth0: PBA No: 001300-000
[ 0.599733] igb 0000:01:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
[ 0.600233] igb 0000:02:00.0: irq 50 for MSI/MSI-X
[ 0.600237] igb 0000:02:00.0: irq 51 for MSI/MSI-X
[ 0.600241] igb 0000:02:00.0: irq 52 for MSI/MSI-X
[ 0.600244] igb 0000:02:00.0: irq 53 for MSI/MSI-X
[ 0.600247] igb 0000:02:00.0: irq 54 for MSI/MSI-X
[ 0.641792] igb 0000:02:00.0: added PHC on eth1
[ 0.641794] igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 0.641796] igb 0000:02:00.0: eth1: (PCIe:2.5Gb/s:Width x1) ac:22:0b:8b:30:a8
[ 0.641853] igb 0000:02:00.0: eth1: PBA No: 001300-000
[ 0.641854] igb 0000:02:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
有谁知道这里可能出了什么问题以及如何让这些网卡正常工作?如果可以在不手动编译内核或驱动程序的情况下做到这一点,我会更喜欢这样做。
答案1
我找到了原因 - 我们acpi-support
安装的软件包由于错误而启用了许多不需要的省电功能。显然igb
司机根本不喜欢这些省电设置。
我在错误报告中描述了详细信息:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728692
如果其他人遇到此问题:删除acpi-support
并安装acpi-support-base
.电源按钮仍然可以工作,但是acpi-support
您不希望在服务器上使用的所有剩余节能魔法都消失了。
答案2
Martin 的解决方案工作正常 - 只需确保安装后端口内核,因为稳定内核不支持 Intel I210 NIC:
apt-get -t wheezy-backports install linux-image-amd64
但这可能需要一些时间。
向后移植详细信息请参见 back ports.debian.org