我过去很少在我的 debian 10 上使用以太网接口。上周我将我的 debian 更新到 debian 11。在安装过程中,它无法通过以太网连接。我尝试过 3 种不同的电缆,其中一些是我的电视日常使用的。因此可以排除电缆故障。完成安装是一个相当大的挑战,因为我的无线局域网接口需要一些非开放的固件。
所以现在我想弄清楚这是设置问题还是我的硬件(以太网)损坏了。我根本不是接口/硬件相关内容的专家。如果有人能告诉我最有可能的情况是什么,那就太好了。
运行一个简单的
sudo lshw -class network -short
H/W path Device Class Description
============================================================
/0/100/1c.6/0 wlp3s0 network Wireless 8265 / 8275
/0/100/1f.6 enp0s31f6 network Ethernet Connection (4) I219-V
在我看来,界面工作正常,不是吗?这是否意味着硬件很可能接触不良/损坏?
ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 8c:16:45:32:c8:b8 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 00:21:6b:ff:ac:d5 brd ff:ff:ff:ff:ff:ff
编辑
/usr/sbin/ethtool enp0s31f6
Settings for enp0s31f6:
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
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 2
Transceiver: internal
MDI-X: Unknown (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
编辑2
样品设定后
sudo /usr/sbin/ethtool -s enp0s31f6 speed 100 duplex full
[sudo] password for nicolas:
(srv) nicolas@debian:~/phd/src$ sudo /usr/sbin/ethtool enp0s31f6
Settings for enp0s31f6:
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
Supported FEC modes: Not reported
Advertised link modes: 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 2
Transceiver: internal
MDI-X: Unknown (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
答案1
正如评论中所讨论的,并根据测试(不成功)使用命令调出界面:
ethtool -s enp0s31f6 speed 100 duplex full
我会说你的以太网适配器坏了。对我来说“ Link detected: no
”证实了这个假设。您可以将其替换为 USB 适配器(无线或有线)。
您也可以考虑将机器发送到服务中心,因为通常这些适配器是可以更换的。或者自己做。
答案2
NO CARRIER
表示未检测到链路,这表示接口的硬件出现故障。这就是为什么启动它的命令不起作用的原因。
由于这是一台笔记本电脑,如果仍在保修期内,供应商通常会修理或更换它。
您还可以使用 USB 转以太网适配器。它们可以从亚马逊以大约 10 - 20 美元的价格购买。