我的笔记本电脑有一个以太网端口和一个 Realtek 以太网控制器:
$ ip -brief addr
lo UNKNOWN 127.0.0.1/8 ::1/128
enp2s0f0 DOWN
enp5s0 UP 192.168.50.83/24 fe80::3af3:abff:fe0c:886f/64
wlp3s0 UP 192.168.50.127/24 fe80::6dc5:4c36:33c3:2795/64
$ lspci | grep -i ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
让我困惑的是我有两个以太网设备:enp2s0f0(向下)和enp5s0(向上)。我一直在试图找出这是为什么。我最好的猜测是这是固件更新的结果(因为转速不同),但我怀疑有一些非常基本的东西我不太明白。
该笔记本电脑是运行 AlmaLinux 9 的 Thinkpad P14S。
更新
笔记本电脑有时连接到扩展坞。这是ip addr
连接到扩展坞时的输出:
$ ip -brief addr
lo UNKNOWN 127.0.0.1/8 ::1/128
enp2s0f0 DOWN
enp5s0 DOWN
wlp3s0 UP 192.168.50.127/24 fe80::6dc5:4c36:33c3:2795/64
enp7s0f3u1u1 UP 192.168.50.121/24 fe80::e9ba:6cf3:d104:781/64
$ lspci | grep -i ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
# lshw -class network -short
H/W path Device Class Description
====================================================================
/0/100/2.2/0 enp2s0f0 network RTL8111/8168/8411 PCI Express Gigabit Ethernet
/0/100/2.3/0 wlp3s0 network Wi-Fi 6 AX200
/0/100/2.6/0 enp5s0 network RTL8111/8168/8411 PCI Express Gigabit Ethernet
/c enp7s0f3u1u1 network Ethernet interface
这是输出lspci -t
:
# lspci -t
-[0000:00]-+-00.0
+-00.2
+-01.0
+-02.0
+-02.1-[01]----00.0
+-02.2-[02]--+-00.0
| +-00.1
| +-00.2
| +-00.3
| \-00.4
+-02.3-[03]----00.0
+-02.4-[04]----00.0
+-02.6-[05]----00.0
+-02.7-[06]----00.0
+-08.0
+-08.1-[07]--+-00.0
| +-00.1
| +-00.2
| +-00.3
| +-00.4
| +-00.5
| \-00.6
+-14.0
+-14.3
+-18.0
+-18.1
+-18.2
+-18.3
+-18.4
+-18.5
+-18.6
\-18.7
另一个更新
这可能更具可读性:
# lspci -tv
-[0000:00]-+-00.0 Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
+-00.2 Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
+-01.0 Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
+-02.0 Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
+-02.1-[01]----00.0 SK hynix Gold P31 SSD
+-02.2-[02]--+-00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
| +-00.1 Realtek Semiconductor Co., Ltd. RTL8111xP UART #1
| +-00.2 Realtek Semiconductor Co., Ltd. RTL8111xP UART #2
| +-00.3 Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface
| \-00.4 Realtek Semiconductor Co., Ltd. RTL811x EHCI host controller
+-02.3-[03]----00.0 Intel Corporation Wi-Fi 6 AX200
+-02.4-[04]----00.0 Genesys Logic, Inc GL9750 SD Host Controller
+-02.6-[05]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
+-02.7-[06]----00.0 Renesas Technology Corp. uPD720202 USB 3.0 Host Controller
+-08.0 Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
+-08.1-[07]--+-00.0 Advanced Micro Devices, Inc. [AMD/ATI] Renoir
| +-00.1 Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
| +-00.2 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
| +-00.3 Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
| +-00.4 Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
| +-00.5 Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
| \-00.6 Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
+-14.0 Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller
+-14.3 Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge
+-18.0 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
+-18.1 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
+-18.2 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
+-18.3 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
+-18.4 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
+-18.5 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
+-18.6 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
\-18.7 Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7```
答案1
根据 Archlinux 维基页面: https://wiki.archlinux.org/title/Lenovo_ThinkPad_T14_(AMD)_Gen_2
enp5s0 is the RJ45 port. enp2s0f0 is the proprietary connector next to the 2nd USB Type-C port for use in the Lenovo ThinkPad Ultra Docking Station or with a Lenovo ThinkPad Ethernet Extension Cable Gen 2 cable.
您的坞站似乎是 USB-C 坞站