Predictable Network Interface Names

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

Starting with v197, systemd/udev under Linux automatically assigns predictable, stable network interface names for all local Ethernet, WLAN and WWAN interfaces. This is a deviation from the traditional interface naming scheme (eth0, eth1, wlan0, ...), which should solve previous problems.

Naming

Depending on the network type, the following prefixes (first two characters) are used:[1]

prefix network type
en Ethernet
ib InfiniBand
sl Serial line IP (slip)
wl Wireless local area network (WLAN)
ww Wireless wide area network (WWAN)

Ethernet (en*)

Ethernet network interface names are assigned as follows:[2]

  • eno: Names containing the index numbers provided by firmware/BIOS for on-board devices, example: eno1 (eno = Onboard).
  • ens: Names containing the PCI Express hotplug slot numbers provided by the firmware/BIOS, example: ens1 (ens = Slot).
  • enp: Names containing the physical/geographical location of the hardware's port, example: enp2s0 (enp = Position).
  • enx: Names containing the MAC address of the interface (example: enx78e7d1ea46da).
  • eth: Classic unpredictable kernel-native ethX naming (example: eth0).

References


Foto Werner Fischer.jpg

Author: Werner Fischer

Werner Fischer, working in the Knowledge Transfer team at Thomas-Krenn, completed his studies of Computer and Media Security at FH Hagenberg in Austria. He is a regular speaker at many conferences like LinuxTag, OSMC, OSDC, LinuxCon, and author for various IT magazines. In his spare time he enjoys playing the piano and training for a good result at the annual Linz marathon relay.


Related articles

Collecting hardware information with lshw and inxi under Linux
Linux Cluster Management Console (LCMC) GUI
Wake On LAN under Linux