:: Re: [DNG] An alternative to renamin…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Rowland Penny
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] An alternative to renaming [was Re: Proposed change in behaviour for ascii: eudev net.ifnames]
On Tue, 22 Aug 2017 09:09:11 -0400
Hendrik Boom <hendrik@???> wrote:

> 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


No, it seems to have been about since at least 2006:

http://www.enterprisenetworkingplanet.com/netos/article.php/3586546/Nail-Down-Network-Interface-Names-with-ifrename.htm

Rowland