LWN.net Logo

Domsch: Consistent Network Device Naming coming to Fedora 15

Domsch: Consistent Network Device Naming coming to Fedora 15

Posted Jan 27, 2011 6:04 UTC (Thu) by jmm82 (guest, #59425)
Parent article: Domsch: Consistent Network Device Naming coming to Fedora 15

Does this mean now Ethernet devices will have three possible interface names?

Why can't they write a udev rule to do naming based on bus location to the proper eth?

Also, I like how udev does /dev/disk and gives each device 4 names by-id, by-label, by-path, and by-uuid. These are all sym links to the Actual device like sda1. Yet, I am unaware of a way to give a Network device a second name similar to doing a sum link to a char or block device.

And no our scripts were not broken and even if we used variables for interface names this is still annoying.


(Log in to post comments)

Domsch: Consistent Network Device Naming coming to Fedora 15

Posted Jan 27, 2011 8:03 UTC (Thu) by joib (guest, #8541) [Link]

Does this mean now Ethernet devices will have three possible interface names?

Apparently, yes. However, this is not news; Not too long ago I used to run CentOS 5 on a laptop, where the Intel wireless card showed up as iwl0 rather than ethX. Not that it ever bothered me.

Why can't they write a udev rule to do naming based on bus location to the proper eth?

Apparently, the ethX namespace is verboten because it races with the kernel detected devices.

Domsch: Consistent Network Device Naming coming to Fedora 15

Posted Jan 27, 2011 16:11 UTC (Thu) by butlerm (subscriber, #13312) [Link]

Apparently, the ethX namespace is verboten because it races with the kernel detected devices.

So why not change the kernel so that it gives non-conflicting temporary names?

Domsch: Consistent Network Device Naming coming to Fedora 15

Posted Jan 28, 2011 12:51 UTC (Fri) by nix (subscriber, #2304) [Link]

Well, you can rename them to whatever you like, so anything other than the stuff in very early boot that renames them (pretty much, anything after udev runs) that relies on specific names is broken already.

(FWIW, I've been running Fedora systems with network interfaces udev-renamed to descriptive names for many years with no problems at all.)

Domsch: Consistent Network Device Naming coming to Fedora 15

Posted Jan 28, 2011 17:34 UTC (Fri) by jmm82 (guest, #59425) [Link]

@nix

Thank you for the clarification. That makes perfectly good sense. I guess I still feel that this could have been done more cleanly. Relaying on the network device name for bus location seems like a conflict of interests. I just hope people don't start depending on the names not changing.

Domsch: Consistent Network Device Naming coming to Fedora 15

Posted Jan 30, 2011 16:59 UTC (Sun) by nix (subscriber, #2304) [Link]

Agreed. It feels like a horrible and gratuitously nonportable layering violation to use PCI bus IDs for anything related to networking... I suppose in this case they *want* ambiguity, so that they'll get the same name on *every* machine with a card plugged into the same slot. Seems really risky to me, but, hell, I'm not the target market.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds