Networking

無法讓 Intel I210 乙太網在 Debian wheezy 上執行

  • February 10, 2014

我有一台帶有華碩 P9D-I 主機板的伺服器。它有兩個板載 Intel NIC:

# 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)

有誰知道這裡可能出了什麼問題以及如何讓這些 NIC 工作?如果完全有可能在不手動編譯核心或驅動程序的情況下做到這一點,我更願意這樣做。

我找到了原因——我們acpi-support安裝了一個軟體包,由於一個錯誤,它啟用了許多不需要的省電功能。顯然igb驅動程序根本不喜歡那些省電設置。

我在錯誤報告中描述了詳細資訊:http ://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728692

如果其他人遇到問題:刪除acpi-support並安裝acpi-support-base. acpi-support電源按鈕仍然可以工作,但是您不希望在伺服器上使用的所有剩餘的省電魔法都消失了。

引用自:https://unix.stackexchange.com/questions/98417