我有一台 Latitude E7240。网络电缆已插入,但以太网已断开连接。尝试过各种方法,包括黑名单、驱动程序搜索、关闭安装 USB,但无济于事。
以下是我的系统的特点和某些日志消息。
感谢您的帮助。muixca
lspci | egrep -i '网络|以太网'
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
lshw-C 网络
description: Ethernet interface
product: Ethernet Connection I218-LM
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: f0:1f:af:44:df:d0
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.7-3 latency=0 link=no multicast=yes port=twisted pair
resources: irq:43 memory:f7e00000-f7e1ffff memory:f7e3c000-f7e3cfff ioport:f080(size=32)
*-network
description: Wireless interface
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 73
serial: 0c:8b:fd:9a:94:d5
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-22-generic firmware=16.242414.0 ip=192.168.1.100 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
resources: irq:47 memory:f7d00000-f7d01fff
cat /var/log/syslog|grep“eth”|tail -100
May 17 11:57:45 pi kernel: [ 1.301756] e1000e 0000:00:19.0 eth0: registered PHC clock
May 17 11:57:45 pi kernel: [ 1.301769] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) f0:1f:af:44:df:d0
May 17 11:57:45 pi kernel: [ 1.301772] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
May 17 11:57:45 pi kernel: [ 1.301795] e1000e 0000:00:19.0 eth0: MAC: 11, PHY: 12, PBA No: FFFFFF-0FF
May 17 11:57:45 pi kernel: [ 1.302537] e1000e 0000:00:19.0 eno1: renamed from eth0
May 17 11:57:45 pi NetworkManager[716]: <info> [1463479065.8244] Loaded device plugin: NMVethFactory (internal)
May 17 12:26:32 pi kernel: [ 1.281566] e1000e 0000:00:19.0 eth0: registered PHC clock
May 17 12:26:32 pi kernel: [ 1.281569] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) f0:1f:af:44:df:d0
May 17 12:26:32 pi kernel: [ 1.281570] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
May 17 12:26:32 pi kernel: [ 1.281593] e1000e 0000:00:19.0 eth0: MAC: 11, PHY: 12, PBA No: FFFFFF-0FF
May 17 12:26:32 pi kernel: [ 1.282264] e1000e 0000:00:19.0 eno1: renamed from eth0
May 17 12:26:32 pi NetworkManager[685]: <info> [1463480792.7346] Loaded device plugin: NMVethFactory (internal)
May 17 15:31:45 pi kernel: [ 1.281609] e1000e 0000:00:19.0 eth0: registered PHC clock
May 17 15:31:45 pi kernel: [ 1.281612] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) f0:1f:af:44:df:d0
May 17 15:31:45 pi kernel: [ 1.281613] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
May 17 15:31:45 pi kernel: [ 1.281638] e1000e 0000:00:19.0 eth0: MAC: 11, PHY: 12, PBA No: FFFFFF-0FF
May 17 15:31:45 pi kernel: [ 1.282343] e1000e 0000:00:19.0 eno1: renamed from eth0
May 17 15:31:45 pi NetworkManager[715]: <info> [1463491905.7807] Loaded device plugin: NMVethFactory (internal)
May 17 15:42:19 pi kernel: [ 0.975770] e1000e 0000:00:19.0 eth0: registered PHC clock
May 17 15:42:19 pi kernel: [ 0.975783] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) f0:1f:af:44:df:d0
May 17 15:42:19 pi kernel: [ 0.975785] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
May 17 15:42:19 pi kernel: [ 0.975809] e1000e 0000:00:19.0 eth0: MAC: 11, PHY: 12, PBA No: FFFFFF-0FF
May 17 15:42:19 pi kernel: [ 0.976390] e1000e 0000:00:19.0 eno1: renamed from eth0
May 17 15:42:19 pi NetworkManager[704]: <info> [1463492539.6124] Loaded device plugin: NMVethFactory (internal)
May 17 15:44:18 pi kernel: [ 0.970795] e1000e 0000:00:19.0 eth0: registered PHC clock
May 17 15:44:18 pi kernel: [ 0.970808] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) f0:1f:af:44:df:d0
May 17 15:44:18 pi kernel: [ 0.970810] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
May 17 15:44:18 pi kernel: [ 0.970834] e1000e 0000:00:19.0 eth0: MAC: 11, PHY: 12, PBA No: FFFFFF-0FF
May 17 15:44:18 pi kernel: [ 0.971359] e1000e 0000:00:19.0 eno1: renamed from eth0
May 17 15:44:18 pi NetworkManager[697]: <info> [1463492658.5978] Loaded device plugin: NMVethFactory (internal)
/etc/networkmanager.conf
和的内容/etc/interfaces
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
uname -a
Linux pi 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
更新输出
ethtool eno1
Settings for eno1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown (auto)
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
lspci-v
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at f7d00000 (64-bit, non-prefetchable) [size=8K]
Capabilities: <access denied>
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
DeviceName: Onboard LAN
Subsystem: Dell Ethernet Connection I218-LM
Flags: fast devsel, IRQ 43
Memory at f7e00000 (32-bit, non-prefetchable) [disabled] [size=128K]
Memory at f7e3c000 (32-bit, non-prefetchable) [disabled] [size=4K]
I/O ports at f080 [disabled] [size=32]
Capabilities: <access denied>
Kernel driver in use: e1000e
Kernel modules: e1000e
答案1
正如您在这一行中看到的:
May 17 15:44:18 pi kernel: [ 0.971359] e1000e 0000:00:19.0 eno1: renamed from eth0
您的网卡已重命名为eno1
,因此使用ethtool eth0
将不会产生任何结果。您需要使用ethtool eno1
使用lspci -v
。这将向您显示哪个内核模块正在处理您的网卡。如果没有列出模块,则您需要驱动程序或可能需要内核升级才能使您的网卡正常工作。