Ask Your Question

Renaming or persistent name of network devices

asked 2018-08-23 02:19:44 -0500

gbraad gravatar image

At the moment I am trying to make several network devices persistent in name, which used to be controlled with /etc/udev/rules.d/70-persistent-net.rules. But the entries here are not picked up, as dmesg | grep eth still returns:

[    1.868768] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) 00:23:24:7b:ae:4e
[    1.868770] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
[    1.868835] e1000e 0000:00:19.0 eth0: MAC: 11, PHY: 12, PBA No: FFFFFF-0FF
[    1.870873] e1000e 0000:00:19.0 eno1: renamed from eth0
[    3.378822] r8152 4-3.1:1.0 eth0: v1.09.9
[    3.382914] r8152 4-3.1:1.0 enp0s20u3u1: renamed from eth0
[    4.331715] r8152 4-3.2:1.0 eth0: v1.09.9
[    4.338498] r8152 4-3.2:1.0 enp0s20u3u2: renamed from eth0
[    5.308623] r8152 4-3.3:1.0 eth0: v1.09.9
[    5.316241] r8152 4-3.3:1.0 enp0s20u3u3: renamed from eth0
[    5.494115] r8152 4-3.4:1.0 eth0: v1.09.9
[    5.501709] r8152 4-3.4:1.0 enp0s20u3u4: renamed from eth0

Which seems to happen from /usr/lib/udev/rules.d/60-net.rules. Which approach will allow me to rename the devices without having to remove current rules.d files in /usr/lib/udev/rules.d ?

edit retag flag offensive close merge delete


Hi, and welcome to ask.fedora. Here, we don't close answered questions even though the website offers it. The idea is to mark the correct answer by ticking the grey check mark under the vote buttons.

florian gravatar imageflorian ( 2018-08-23 13:02:24 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-08-23 11:07:24 -0500

gbraad gravatar image

updated 2018-08-23 19:52:03 -0500

florian gravatar image

Had already found the answer in -->guide

If it finds an ifcfg file with a HWADDR entry matching the MAC address of an interface it renames the interface to the name given in the ifcfg file by the DEVICE directive.
edit flag offensive delete link more

answered 2018-08-23 09:34:28 -0500

villykruse gravatar image

The name can be set in the ifcfg- file found in /etc/sysconfig/network. Example:


Then the name of the device which have MAC address E0:CB:4E:D9:92:87 will become link1.

The name can also be set using nm-connection-editor fields "Device:"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-08-23 02:19:44 -0500

Seen: 364 times

Last updated: Aug 23 '18