[systemd-devel] RFC: Predictable Network Interface Names
Lennart Poettering
lennart at poettering.net
Tue Jan 8 10:06:21 PST 2013
On Tue, 08.01.13 13:37, Holger Winkelmann (hw at travelping.com) wrote:
>
> Hi,
>
> > > I.e. fe0/01 for fast Ethernet port in first slot with a multi port NIC.
> >
> > Well, as these names show up in sysfs and hence in the file system they
> > can't really include slashes since that's not allowed in file
> > names. This is a general kernel limitation.
>
> I know about limitations in Kernel and have seen some efforts in the past
> to avoid this. but generally I don't think it would be successful to go down
> the road to allow slashes.
>
> > For your example the new code would pick a name of "enp0s0d0", i.e. for
> > pci bus 0, slot 0, and dev_id 0.
>
> It would take some time to geht used for this names, anyway...
> In your link below I have seen "ID_NET_NAME_ONBOARD_LABEL=Ethernet
> Port 1"
>
> can anybody explain where this label is being exposed to userland tools for
> display and management purposes?
These are udev properties. You can easily query them with libudev, or
from the command line:
udevadm info /sys/class/net/eno1
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list