interface renaming

Rashkae ubuntu at tigershaunt.com
Sat Jul 30 14:15:12 UTC 2016


On 16-07-30 09:11 AM, Josef Wolf wrote:
> On Sat, Jul 30, 2016 at 01:35:47PM +0100, Colin Law wrote:
>
>> https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
>
> What does it contradict?
>
> Might this contradiction be a result of the propaganda they have to spread
> in order to propagate their system?
> Here's what I see on a 14.04:
>
>    root at vdr1:/etc/udev/rules.d# grep eth *
>    70-persistent-net.rules:#SUBSYSTEM=="net",[...], ATTR{address}=="00:xx:xx:xx:xx:58",[...], NAME="eth0"
>    70-persistent-net.rules:SUBSYSTEM=="net",[...], ATTR{address}=="00:xx:xx:xx:xx:cc",[...], NAME="eth0"
>    70-persistent-net.rules~:SUBSYSTEM=="net",[...], ATTR{address}=="00:xx:xx:xx:xx:58",[...], NAME="eth0"
>    70-persistent-net.rules~:SUBSYSTEM=="net",[...], ATTR{address}=="00:xx:xx:xx:xx:cc",[...], NAME="eth1"
>
> (I shortened the lines to keep them readable)
>
> Here, you actually see the traces of "swapping" the interface names. The emacs
> backup file (the one with the tilde) represents the state as it was
> auto-detected. The commented line is the on-board interface, that did not work
> for me. The not-commented line is the pci card, which was auto-detected as
> eth1 and which I renamed to eth0 just by editing one text file.
>
> Simple... effective... working!
>


The second paragraph under "Why" covers this example.  "working" not so 
much for everyone.  If you choose to dismiss this as "propaganda", I'm 
sure you're welcome to maintain your own Linux distro.

In the same link, there is documented a new file format to achieve the 
same result, persistent device names that are easy for humans to 
remember/understand, and based on MAC address, (if that works better for 
you than PCI slot addresses.)

[Match]
MACAddress=00:a0:de:63:7a:e6

[Link]
Name=lan0

Wow.. that is *so* much worse than the udev file example you posted!!!,, 
err, wait, actually, that's kind of of easy and simple.

Maybe what people here really want is a script that creates these 
/etc/systemd/network/*.link files automagically when a new interface is 
detected.  That would be much the same as older Ubuntu versions did with 
the net-persistent udev file.  I would be entirely behind that proposal, 
as I have no fondness for the new interface naming scheme myself.





More information about the ubuntu-users mailing list