Quote:
Originally Posted by michaelk
With predictable naming the first two characters indicate the type of device. wl is wireless and en is a PCI ethernet adapter.
|
Thanks for the response. Unfortunately it seems it doesn't always work that way, so I was hoping to find a hardware-dependent flag of some kind to indicate an ethernet interface.
On my desktop pc the ethernet nic (on the motherboard, not in a pci slot, btw) is named 'p3p1'; the command 'journalctl -b | grep eth0' shows this:
Code:
alx 0000:05:00.0 eth0: Qualcomm Atheros AR816x/AR817x Ethernet [74:d4:35:ea:07:41]
alx 0000:05:00.0 p3p1: renamed from eth0
On my laptop the the ethernet nic is 'enp2s0', and the same command shows:
Code:
r8169 0000:02:00.0 eth0: RTL8168e/8111e at 0xffffad1980018000, b8:70:f4:bf:b2:38, XID 0c200000 IRQ 33
r8169 0000:02:00.0 enp2s0: renamed from eth0