英特尔以太网网络适配器无法工作 - Ubuntu 16.04

英特尔以太网网络适配器无法工作 - Ubuntu 16.04

我刚刚在一台新台式电脑上安装了全新的 Ubuntu 16.04 LTS,它无法通过有线连接连接到互联网。

我见过几个类似问题的答案,例如:

Ubuntu 16.04 上的以太网连接问题

为什么有线互联网在 Ubuntu 16.04 LTS 中无法工作?

Ubuntu 16.04 以太网问题

还有其他几个,但他们提出的解决方案都不适合我。我有一块华硕 Z270 主板,标准诊断的输出是:

知识产权

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
2: enp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 2c:56:dc:39:d7:91 brd ff:ff:ff:ff:ff:ff

网际协议连接

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 2c:56:dc:39:d7:91 brd ff:ff:ff:ff:ff:ff

是否配置

enp5s0    Link encap:Ethernet  HWaddr 2c:56:dc:39:d7:91  
      UP 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:df300000-df31ffff 

lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:2634 errors:0 dropped:0 overruns:0 frame:0
      TX packets:2634 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1 
      RX bytes:195404 (195.4 KB)  TX bytes:195404 (195.4 KB)

sudo lshw -C 网络

*-network               
       description: Ethernet interface
       product: I211 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: enp5s0
       version: 03
       serial: 2c:56:dc:39:d7:91
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.3.0-k firmware=0. 6-1 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:17 memory:df300000-df31ffff ioport:c000(size=32) memory:df320000-df323fff
  *-network UNCLAIMED
       description: Ethernet controller
       product: Ethernet Connection (5) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list
       configuration: latency=0
       resources: memory:dd100000-dd11ffff

猫/等/网络/接口

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

请参阅lspci-nnk| grep -A9 网络

05:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
Subsystem: ASUSTeK Computer Inc. I211 Gigabit Network Connection [1043:85f0]
Kernel driver in use: igb
Kernel modules: igb
06:00.0 USB controller [0c03]: ASMedia Technology Inc. Device [1b21:2142]
Subsystem: ASUSTeK Computer Inc. Device [1043:8732]
Kernel driver in use: xhci_hcd

消息 |删除 igb

[    0.867051] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
[    0.867052] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.896603] igb 0000:05:00.0: added PHC on eth0
[    0.896603] igb 0000:05:00.0: Intel(R) Gigabit Ethernet Network Connection
[    0.896604] igb 0000:05:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 2c:56:dc:39:d7:91
[    0.896605] igb 0000:05:00.0: eth0: PBA No: FFFFFF-0FF
[    0.896606] igb 0000:05:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[    0.905377] igb 0000:05:00.0 enp5s0: renamed from eth0

sudo modprobe e1000e && dmesg | grep e100

[136118.178325] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[136118.178326] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.

希望您能帮助我解释为什么无法连接...谢谢!

答案1

我在解决其他问题时发现了一个解决问题的方法——安装 Ubuntu 16.10 就可以了。

我看到对于另一款计算机型号 Intel NUC,建议使用 Ubuntu 16.10,因为 16.04 对 Kaby Lake CPU 的支持不太好:

https://communities.intel.com/thread/114411

http://nucblog.net/2017/04/kaby-lake-i7-nuc-conclusions/

所以我检查了一下,这台电脑也有 Kaby Lake 系列的 i7 7700K,即与 Ubuntu 16.04 配合不佳。

安装了 16.10 并且一切正常。

谢谢您的帮助 :)

答案2

I219-V Intel 以太网控制器有多个版本。楼主肯定用的是较早的版本。Ubuntu 16.10 不支持较新的版本。适用于所有版本的控制器的解决方案如下英特尔的 e1000e 基础驱动程序说明。在这种情况下您可以继续运行 16.04 LTS 版本。

英特尔说明书没有说明安装制作海湾合作委员会。我遵循的步骤如下:

# Download e1000e tar file from https://downloadcenter.intel.com/download/15817
sudo apt install make gcc
tar xvfz e1000e-*.tar.gz
cd e1000e-*/src
sudo make install
sudo rmmod e1000e  # It's ok if this has an error
sudo modprobe e1000e

如果此操作有效,那么您将在 /var/log/kern.log 末尾看到设置相关以太网接口的消息,并且新接口将列出,

ip a

相关内容