私のEthernetアダプタに2つのデバイスがあるのはなぜですか?

私のEthernetアダプタに2つのデバイスがあるのはなぜですか?

私のラップトップにはイーサネットポートと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(上)という2つのイーサネットデバイスがあるということです。私はその理由を理解しようとしてきました。私の推測では、これがファームウェアアップデート(rpmの違いのため)の結果であるようですが、私がよく理解していない非常に基本的なものがあるようです。

ノートブックは、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 Wikiページによると: 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ドックのようです。

おすすめ記事