I need the device eth0 for one tool using CentOS 7.6. Using this tutorial
https://www.certdepot.net/rhel7-restore-old-network-interface-name/
doesn t work.
Thanks for a hint.
Ralf
3 thoughts on - How To Restore The Old Network Interface Name?
This Red Hat documentation explains how the naming works:
You don’t need to set kernel parameters to set the interface name.
Might look into 70-persistent-net.rules in addition to the article below (do your web research for that and CentOS 7), it’s a file you probably have to create (not necessarily auto-generated as some documentation says) under /etc/udev/rules.d. There have been two known formats for that file and a given format doesn’t work in all cases. Here are the formats I’ve seen, hope it helps (everything below is literal except what’s contained in the less/greater than delimiters):
3 thoughts on - How To Restore The Old Network Interface Name?
This Red Hat documentation explains how the naming works:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-understanding_the_device_renaming_procedure
You don’t need to set kernel parameters to set the interface name.
Might look into 70-persistent-net.rules in addition to the article below (do your web research for that and CentOS 7), it’s a file you probably have to create (not necessarily auto-generated as some documentation says) under /etc/udev/rules.d. There have been two known formats for that file and a given format doesn’t work in all cases. Here are the formats I’ve seen, hope it helps (everything below is literal except what’s contained in the less/greater than delimiters):
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”“, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”“
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”“, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, NAME=”“
Note the missing KERNEL==… in the latter form.
Zitat von Jonathan Billings:
Hallo, this helps https://unix.stackexchange.com/questions/396382/how-can-i-show-the-old-eth0-names-and-also-rename-network-interfaces-in-debian-9
but it is important to use grub2 nad not grub.
Ralf