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-Und...
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
Allegedly, on or about 30 January 2016, Alex sent:
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"
Dumb question, but have you tried reversing the order? (Define eth0 before you try to define eth1.)