Ethernet names in systemd
|Reported by:||Owned by:|
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/99-default.link
- 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 systemd.link(5) for more information.
- Pass the net.ifnames=0 on the kernel command line.