Neil Bothwick <[email protected]> writes: > On Tue, 20 Dec 2016 23:11:08 +0100, lee wrote: > >> >> But you already heard of udev rules? I guess I mentioned them >> >> already. They are not so hard to write and they only need to be >> >> written once. >> > >> > It's too late by then, if eth0 and eth1 already exist, you cannot >> > switch them with udev rules - as anyone who had worked with dual NICs >> > would have discovered. >> >> Can you switch them when they have unrecognisable names? > > You can't switch any two names because the udev rules are run singly, so > at one point you will be trying to rename an interface with a name that > is already in use.
I mean more like renaming them on the fly --- or by having a configuration file with key:value pairs like 'enp69s0f1:eth3' --- or perhaps triples like 'enp69s0f1:eth3:"DMZ Interface"'. That way, you could have a recognisable name (or several names) for every unrecognisable one and assume that "eth3" or "foo" or however you want to call it is the same interface just as much as you would with unrecognisable names --- plus the advantage that when you ever need to change an interface, you only need to edit one small file rather than various configurations files having the unrecognisable name(s) in them. And you would also have descriptions.

