[CentOS] How to restore the old network interface name?

Tue Jul 2 16:55:14 UTC 2019
Leroy Tennison <leroy at datavoiceint.com>

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.