Add 'README.rename.netdevices'.

This commit is contained in:
2018-05-06 17:36:05 +02:00
parent 820fdbff49
commit 2a96dfdc8f
2 changed files with 28 additions and 1 deletions

22
README.rename.netdevices Normal file
View File

@ -0,0 +1,22 @@
# - ==========
# - How to rename network interface back to eth* (instead of i.e. enp0sXX)
# - ==========
Solutions:
==========
1.) Add 'net.ifnames=0' to parameter 'GRUB_CMDLINE_LINUX' at /etc/default/grub
GRUB_CMDLINE_LINUX="aufs=tmpfs console=tty0 console=ttyS0,38400n8 reboot=bios net.ifnames=0"
2.) (not tested!) Create a file /etc/systemd/network/10-eth.link with the contents
[Match]
MACAddress=ff:ff:ff:ff:ff:ff
[Link]
Name=eth0
replacing ff:ff:ff:ff:ff:ff with the MAC address of the device you wanted to change.
After reboot the name was as desired.