Consistent names changed yet again?

Kevin Martin ktmdms at gmail.com
Wed Aug 6 13:37:27 UTC 2014


On 08/06/2014 07:08 AM, Tom Horsley wrote:
> On Wed, 6 Aug 2014 07:55:55 -0400
> Matthew Miller wrote:
> 
>> "consistent on the same machine for a given OS release,
>> _across any possible hardware changes_"
> 
> Maybe, but I know I watched the interface names change
> just because a new version of bisodevname was released
> before biosdevname was engulphed by systemd. I wouldn't
> be surprised at all to see a systemd update change
> the names as well :-(.
> 
> I also love the new systemd conventions that give me
> a different "consistent" name for my USB wifi dongle
> depending on which USB port I plug it into :-).
> 
> http://home.comcast.net/~tomhorsley/game/biosdevname.html
> 
I was having the same issue and finally resolved to make sure that my "consistent" ethernet device was named eth0.  I did that with
the following line in /etc/udev/rules.d/70-my-net-names.rules:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c8:0a:a9:b1:46:c2", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"

Thereby forcing my device with that mac address to have name eth0.  dmesg shows udev/systemd changing this:

[    3.975997] systemd-udevd[232]: renamed network interface eth0 to p6p1
[   21.108994] systemd-udevd[421]: renamed network interface p6p1 to eth0

YMMV.

Kevin



More information about the test mailing list