Dell M620 上的双 NIC 端口仅显示 1 个以太网接口

Dell M620 上的双 NIC 端口仅显示 1 个以太网接口

我有一台 Dell M620 服务器,配备 Intel(R) 以太网 10G 2P X520-k bNDC。但是当我安装 Ubuntu 14.04.02 时,我只能看到系统中的 1 个接口?为什么容量只有 1G/s?应该是 10G/s 吗?

我配置错了吗?我和戴尔的人谈过,他们说硬件没有问题,让我问问 Ubuntu 社区。非常感谢。

d@cluster:~$  sudo lshw -C network
[sudo] password for d: 
  *-network:0             
       description: Ethernet interface
       product: 82599 10 Gigabit Dual Port Backplane Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: em1
       version: 01
       serial: 5c:f9:dd:b9:48:dc
       size: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress vpd bus_master cap_list rom ethernet physical fibre autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=ixgbe driverversion=3.19.1-k duplex=full firmware=0x800007f6 ip=10.200.0.20 latency=0 link=yes multicast=yes speed=1Gbit/s
       resources: irq:36 memory:d8d00000-d8dfffff ioport:fcc0(size=32) memory:d8ff8000-d8ffbfff memory:d8000000-d807ffff memory:d5300000-d53fffff memory:d5400000-d54fffff
  *-network:1 DISABLED
       description: Ethernet interface
       product: 82599 10 Gigabit Dual Port Backplane Connection
       vendor: Intel Corporation
       physical id: 0.1
       bus info: pci@0000:01:00.1
       logical name: em2
       version: 01
       serial: 5c:f9:dd:b9:48:de
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress vpd bus_master cap_list rom ethernet physical fibre 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=ixgbe driverversion=3.19.1-k firmware=0x800007f6 latency=0 link=no multicast=yes
       resources: irq:34 memory:d8e00000-d8efffff ioport:fce0(size=32) memory:d8ffc000-d8ffffff memory:d8080000-d80fffff memory:d5500000-d55fffff memory:d5600000-d56fffff
  *-network:0 DISABLED
       description: Ethernet interface
       product: 82599 10 Gigabit Dual Port Backplane Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: p3p1
       version: 01
       serial: 5c:f9:dd:b9:48:e0
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress vpd bus_master cap_list rom ethernet physical fibre 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=ixgbe driverversion=3.19.1-k duplex=full firmware=0x80000818 latency=0 link=no multicast=yes
       resources: irq:52 memory:d5000000-d50fffff ioport:dcc0(size=32) memory:d52f8000-d52fbfff memory:da000000-da07ffff memory:da100000-da1fffff memory:da200000-da2fffff
  *-network:1 DISABLED
       description: Ethernet interface
       product: 82599 10 Gigabit Dual Port Backplane Connection
       vendor: Intel Corporation
       physical id: 0.1
       bus info: pci@0000:03:00.1
       logical name: p3p2
       version: 01
       serial: 5c:f9:dd:b9:48:e2
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress vpd bus_master cap_list rom ethernet physical fibre 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=ixgbe driverversion=3.19.1-k firmware=0x80000818 latency=0 link=no multicast=yes
       resources: irq:48 memory:d5100000-d51fffff ioport:dce0(size=32) memory:d52fc000-d52fffff memory:da080000-da0fffff memory:da300000-da3fffff memory:da400000-da4fffff

d@cluster:~$ ifconfig 
em1       Link encap:Ethernet  HWaddr 5c:f9:dd:b9:48:dc  
          inet addr:10.200.0.20  Bcast:10.200.0.255  Mask:255.255.255.0
          inet6 addr: fe80::5ef9:ddff:feb9:48dc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:178920 errors:0 dropped:3184 overruns:0 frame:0
          TX packets:839 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:16633293 (16.6 MB)  TX bytes:100033 (100.0 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1184 (1.1 KB)  TX bytes:1184 (1.1 KB)

d@cluster:~$ uname -a
Linux cluster 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

答案1

我实际上也遇到了同样的问题,因为我已经修复了旧的 ethX 命名方案,并尝试使用 emX / ethX 组合

正如你所做的那样,你可以通过“sudo lshw -C network”获得网卡详细信息。就我而言

  *-network:0 DISABLED    
   description: Ethernet interface
   product: 82599ES 10-Gigabit SFI/SFP+ Network Connection
   vendor: Intel Corporation
   physical id: 0
   bus info: pci@0000:08:00.0
   logical name: p2p1
   version: 01
   serial: xxxxxxx
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi msix pciexpress vpd bus_master 
   cap_list rom ethernet physical fibre
   configuration: autonegotiation=off broadcast=yes driver=ixgbe 
   driverversion=3.19.1-k firmware=0x8000081f latency=0 link=no 
   multicast=yes
   resources: irq:48 memory:d9d00000-d9dfffff ioport:ecc0(size=32) 
   memory:d9ff8000-d9ffbfff memory:d9000000-d907ffff 
   memory:d5100000-d51fffff memory:d5200000-d52fffff

现在使用 lspci 输出中的“逻辑名称”(对于扩展卡,使用 pXpX 方案),在 /etc/network/interfaces 中将激活网络接口

我在富士通系统上运行良好,其中设备显示为 ethX,并且可以使用 ethtool 探测未定义的网络接口(sudo ethtool eth2)

所以另一种方法是将命名改回 ethX(emX / pXpX 是新的命名方案)

  Edit /etc/default/grub and find these lines:
  GRUB_CMDLINE_LINUX_DEFAULT=""
  GRUB_CMDLINE_LINUX=""

  Add biosdevname=0, just like this:
  GRUB_CMDLINE_LINUX_DEFAULT="biosdevname=0"
  GRUB_CMDLINE_LINUX="biosdevname=0"

  Then run:
  sudo update-grub
  sudo reboot

相关内容