46

What do the Linux interface names mean?

  • eth0
  • eth1
  • wlan0

My current assumption is that when we are connected to the Internet via LAN cable it's eth0 or eth1 and when we are connected with internet via WiFi it's wlan0.

2
  • 4
    Do note that some distros (Fedora and probably others) name devices differently: docs.fedoraproject.org/en-US/Fedora/16/html/…. The goal was to avoid ambiguity (e.g. multiple network cards in a system).
    – Renan
    Jul 13, 2013 at 20:01
  • 8
    the good ol' time when an ethernet interface was called eth0 and not enp0s25!
    – Francois
    Jun 16, 2016 at 9:05

2 Answers 2

42

Your assumption is correct.

The names however can be set/chosen by the user or the operating system that you are using. eth0 and eth1 is used because it's more intuitive than choosing an arbitrary name because "LAN cable" connection, like you said is Ethernet (hence the eth in eth0, eth1). Similarly when you connect to WiFi, it's "WirelessLAN" (hence the wlan in wlan0).

3
  • @HaiderAli mark as "answer" (the V above up/down vote question) if you consider this answer as the correct answer Jul 13, 2013 at 20:15
  • @VictorAurélio my reputation is less than 15 :)
    – Haider Ali
    Jul 13, 2013 at 20:16
  • 2
    @HaiderAli, you can apply the tick though, to mark it as correct
    – Cry Havok
    Jul 13, 2013 at 20:29
7

eth0 is the first ethernet interface, any additional ethernet interfaces would be named eth1, eth2, etc.

Not the answer you're looking for? Browse other questions tagged or ask your own question.