:: Re: [DNG] An alternative to renamin…
Top Page
Delete this message
Reply to this message
Author: Hendrik Boom
Date:  
To: dng
Subject: Re: [DNG] An alternative to renaming [was Re: Proposed change in behaviour for ascii: eudev net.ifnames]
On Mon, Aug 21, 2017 at 03:52:44PM +0200, Didier Kryn wrote:
>
>     Note that a similar problem with disks has been solved elegantly by
> referencing disks by their uuid or label in /etc/fstab. Maybe
> /etc/network/interface could specify the MAC address as a hook. This would
> only suppose that the hotplugger creates a symlink to the interface in some
> /dev/net/by-address/ subdirectory. With this solution, it is up to the admin
> to decide if  s?he wants a simple configuration based on interface name
> (eth0) or a secured one alla "Address=a0:d3:c1:9d:a5:86".


It turns out that something like this already exists. The ifrename command
renames interfaces using a /etc/iftab file. But it is not installed
by default.

Ifrename must be run before interfaces are brought up,

So it seems to be something that has to be used during init or
hotplugging.

Is it a systemdism?

-- hendrik