Ralf Prengel
2019-Jul-02 09:56 UTC
[CentOS] How to restore the old network interface name?
Hallo, 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
Jonathan Billings
2019-Jul-02 12:08 UTC
[CentOS] How to restore the old network interface name?
On Tue, Jul 02, 2019 at 11:56:03AM +0200, Ralf Prengel wrote:> 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.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. -- Jonathan Billings <billings at negate.org>
Leroy Tennison
2019-Jul-02 16:55 UTC
[CentOS] How to restore the old network 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}=="<colon-separated mac address, lower-case>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="<new name>" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<colon-separated mac address, lower-case>", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="<new name>" Note the missing KERNEL==... in the latter form. ________________________________ From: CentOS <centos-bounces at centos.org> on behalf of Ralf Prengel <ralf.prengel at rprengel.de> Sent: Tuesday, July 2, 2019 4:56 AM To: CentOS mailing list Subject: [EXTERNAL] [CentOS] How to restore the old network interface name? Hallo, I need the device eth0 for one tool using centos 7.6. Using this tutorial https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.certdepot.net%2frhel7-restore-old-network-interface-name%2f&c=E,1,_N-6Ga7-RXX-iwhg9-7842nyxrBXlZ3jmvPHUhIYBoIRbfi51krljOSNJKWZlazwotUW4gPX0NsSZ6l6Sjdtdaba3SAt1YES6sfHIll53M2YxmPjTrrb98aASA,,&typo=1 doesn t work. Thanks for a hint. Ralf _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos Harriscomputer Leroy Tennison Network Information/Cyber Security Specialist E: leroy at datavoiceint.com [cid:Data-Voice-International-LOGO_aa3d1c6e-5cfb-451f-ba2c-af8059e69609.PNG] 2220 Bush Dr McKinney, Texas 75070 www.datavoiceint.com<http://www..com> This message has been sent on behalf of a company that is part of the Harris Operating Group of Constellation Software Inc. These companies are listed here<http://subscribe.harriscomputer.com/>. If you prefer not to be contacted by Harris Operating Group please notify us<http://subscribe.harriscomputer.com/>. This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.
Ralf Prengel
2019-Jul-18 05:55 UTC
[CentOS] How to restore the old network interface name?
Zitat von Jonathan Billings <billings at negate.org>:> On Tue, Jul 02, 2019 at 11:56:03AM +0200, Ralf Prengel wrote: >> 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. > > 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. >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