[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to compute predictable network interface names?



Hi Christian,

On 02/24/17 12:43, Christian Seiler wrote:
> 
> udev will then rename the device once it encounters it.
> 
> In newer udev versions, it will use some (but not all) settings from
> systemd.link files. The other settings are interpreted by
> systemd.networkd. (And if you don't use that or don't have that
> installed, they will be ignored.) That's also the reasnon why those
> files are in a systemd directory, even though udev interprets some
> parts of them - since the matching of interfaces is identical for
> the purposes of udev and systemd-networkd, systemd developers decided
> it would be simpler to have just one configuration file that is read
> by both. (udev and systemd are both in the same repository, even
> though you can use udev without systemd.)
> 

Thats a bad choice. Now the man page is not installed on
"udev-only" systems, because the package maintainer recognized
it as a "systemd" man page. #857270

> 
> No. net.ifnames=0 will have udev completely ignore NamePolicy here
> and not rename the interface at all.
> 

Is there a policy option telling udev/systemd to not touch the
interface names? AFAIU that should be easy to implement, but
there is no "NamePolicy=keep" described in systemd.link(5) (or
I was too blind to see).


Regards
Harri


Reply to: