Add 'README.rename.netdevices'.
This commit is contained in:
22
README.rename.netdevices
Normal file
22
README.rename.netdevices
Normal 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.
|
||||
|
Reference in New Issue
Block a user