Renaming network devices in fedora23

Alex mysqlstudent at gmail.com
Sun Jan 31 03:07:11 UTC 2016


Hi,

I have a fedora23 server with eno1 and enp0s25. I'd like to rename
them to eth0 and eth1. I'm familiar with all the network changes that
have occurred over the years with biosdevname, etc. Reading section
8.2 of the Networking Guide manual:

https://docs.fedoraproject.org/en-US/Fedora/22/html/Networking_Guide/sec-Understanding_the_Device_Renaming_Procedure.html

says I can create a rule in /etc/udev/rules.d/60-net.rules, but it
doesn't specify how to actually create that rule.

Given my past experience, I created the following:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:25:90:ab:ab:1f", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:25:90:ab:ab:1e", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"

This kind of works. It reads my ifcfg-eth0 and ifcfg-eth1 and creates
interfaces by those names, but they are switched. The 1e interface is
eth1 and the 1f interface is is eth0. Is it not possible to control
the MAC address to a specific interface name? Of course I tried
switching "eth1" and "eth0" and rebooting, but it didn't even matter.

This used to be called 70-persistent-net.rules. I believe I tried to
create that file and it worked the same as the 60-net.rules file.

There really isn't any current discussion about how people are doing this.

Thanks,
Alex


More information about the users mailing list