Как, используя «стандартные» утилиты линуха, определить что сетевая карта - интегрированное в мать устройство??
как пример, есть две сетевухи - одна я знаю точно - интегрированная, вторая воткнута в pci
вот вывод udevadm и lspci для eth1
udevadm info --query=all --path=/sys/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:04.0/0000:25:00.0/net/eth1
P: /devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:04.0/0000:25:00.0/net/eth1
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:04.0/0000:25:00.0/net/eth1
E: INTERFACE=eth1
E: IFINDEX=2
E: SUBSYSTEM=net
E: USEC_INITIALIZED=17260974
E: ID_BUS=pci
E: ID_VENDOR_ID=0x10ec
E: ID_MODEL_ID=0x8168
E: ID_PCI_CLASS_FROM_DATABASE=Network controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller
E: ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Co., Ltd.
E: ID_MODEL_FROM_DATABASE=RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
E: ID_MM_CANDIDATE=1
E: ID_PATH=pci-0000:25:00.0
E: ID_PATH_TAG=pci-0000_25_00_0
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/rename2 /sys/subsystem/net/devices/eth1
E: ID_NET_NAMING_SCHEME=sle15-sp3
E: ID_NET_NAME_MAC=enx047c16dcdbc2
E: ID_NET_NAME_PATH=enp37s0
E: TAGS=:systemd:
........
lspci -v -k -s 0000:25:00.0
25:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7a38
Flags: bus master, fast devsel, latency 0, IRQ 29
I/O ports at e000 [size=256]
Memory at fc604000 (64-bit, non-prefetchable) [size=4K]
Memory at fc600000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Capabilities: [178] L1 PM Substates
Kernel driver in use: r8169
Kernel modules: r8169
вот вывод тех же утилит для eth0
udevadm info --query=all --path=/sys/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:06.0/0000:27:00.0/net/eth0
P: /devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:06.0/0000:27:00.0/net/eth0
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:06.0/0000:27:00.0/net/eth0
E: INTERFACE=eth0
E: IFINDEX=3
E: SUBSYSTEM=net
E: USEC_INITIALIZED=17192253
E: ID_NET_NAMING_SCHEME=sle15-sp3
E: ID_NET_NAME_MAC=enx00e04c15310a
E: ID_OUI_FROM_DATABASE=REALTEK SEMICONDUCTOR CORP.
E: ID_NET_NAME_PATH=enp39s0
E: ID_BUS=pci
E: ID_VENDOR_ID=0x10ec
E: ID_MODEL_ID=0x8168
E: ID_PCI_CLASS_FROM_DATABASE=Network controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller
E: ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Co., Ltd.
E: ID_MODEL_FROM_DATABASE=RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
E: ID_MM_CANDIDATE=1
E: ID_PATH=pci-0000:27:00.0
E: ID_PATH_TAG=pci-0000_27_00_0
E: ID_NET_DRIVER=r8169
E: ID_NET_LINK_FILE=/usr/lib/systemd/network/99-default.link
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/eth0 /sys/subsystem/net/devices/eth0
E: TAGS=:systemd:
.....
lspci -v -k -s 0000:27:00.0
27:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
Flags: bus master, fast devsel, latency 0, IRQ 31
I/O ports at d000 [size=256]
Memory at e2104000 (64-bit, prefetchable) [size=4K]
Memory at e2100000 (64-bit, prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Kernel driver in use: r8169
Kernel modules: r8169
накопал всё что можно вроде :) даже как узнать скорость соединения через cat /sys/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:06.0/0000:27:00.0/net/eth0/speed там же можно узнать работает она или нет ./operstate и еще много чего интересного можно узнать :)
но вот как определить что карта интегрированная в мать или это отдельное устройство воткнутое в разъем …. Подскажите, как узнать какая из этих карт интегрированная? т.е. не по косвенным признакам, а четко указанным.
Перемещено hobbit из general