Opened 6 years ago

Closed 6 years ago

#4180 closed enhancement (fixed)

Ethernet names in systemd

Reported by: bdubbs@… Owned by: bdubbs@…
Priority: normal Milestone: 8.2
Component: Book Version: SVN
Severity: normal Keywords:


We need to expand the discussion of ethernet names in section 7.2 (General Network Configuration) of the systemd version of the book.

At a minimum, change eth0 in the here documents for Static IP Configuration and DHCP Configuration to something like <ethernet-device>

Perhaps a discussion about how to avoid the device renaming would be appropriate because the vast majority of systems only have one ethernet device of each type (e.g. eth0 and wifi0 or wlan0).

  • Disable the assignment of fixed names, so that the classic kernel names are used again. For this, simply mask udev's .link file for the default policy: ln -s /dev/null /etc/systemd/network/
  • Create a manual naming scheme, for example by naming the interfaces "internet0", "dmz0" or "lan0". For that, create .link files in /etc/systemd/network/, that choose an explicit name or a better naming scheme for one, some, or all of your interfaces. See for more information.
  • Pass the net.ifnames=0 on the kernel command line.

Change History (2)

comment:1 by bdubbs@…, 6 years ago

Owner: changed from lfs-book@… to bdubbs@…
Status: newassigned

comment:2 by bdubbs@…, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 11340.

Note: See TracTickets for help on using tickets.