On Thu, Jul 13, 2017 at 05:17:57AM -0400, Tom H wrote: > > This caught me out on a recent new installation, which gave me these new > > names which are too complicated to be usable. I wasted hours working out > > what had happened, how to fix it and how to write a udev rules file from > > scratch. And having just read this thread, I've discovered that the rules > > I've written are themselves apparently unreliable, for example: > > SUBSYSTEM=="net", ATTR{address}=="1c:1b:0d:9a:34:98", NAME="eth0" > > SUBSYSTEM=="net", ATTR{address}=="1c:1b:0d:9a:34:9a", NAME="eth1" > > It's simpler to use (for example) > > # cat /etc/systemd/network/77-en0.link > [Match] > MACAddress=1c:1b:0d:9a:34:98 > [Link] > Name=en0
There's apparently also a package "ifrename" which makes writing these rules more user friendly. And doesn't place them in obscure places that change every release. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ A dumb species has no way to open a tuna can. ⢿⡄⠘⠷⠚⠋⠀ A smart species invents a can opener. ⠈⠳⣄⠀⠀⠀⠀ A master species delegates.