[systemd-devel] How to disable Predictable Network Interface Names using a drop-in?
Marc Haber
mh+systemd-devel at zugschlus.de
Sun Feb 19 11:54:40 UTC 2017
On Mon, Feb 06, 2017 at 09:56:30PM +0100, Lennart Poettering wrote:
> On Sat, 21.01.17 21:20, Marc Haber (mh+systemd-devel at zugschlus.de) wrote:
> > On Fri, Jan 20, 2017 at 02:51:00PM +0000, Patrick Schleizer wrote:
> > > I've learned about the kernel parameter and symlink ways to disable
> > > predictable network interface names.
> >
> > What would be the "symlink way"?
>
> Linking the relevant .link file to /dev/null in /etc.
What if there is no .link file and the Interfaces just come up as
enp8s0 and wlp2s0
> However, if you pick your own names outside of the kernel's
> namespaces, then all is good, and that's actually what we
> recommend. (Though I'd do it by dropping in some .link files with the
> right [Match] sections to make this happen, not bother with udev
> rules, but either works)
[2/5147]mh at swivel:~ $ cat /etc/systemd/network/lanc0.link
[Match]
MACAddress=f0:de:f1:b0:03:20
[Link]
Name=lanc0
[3/5148]mh at swivel:~ $ ip --oneline link show | grep f0:de:f1:b0:03:20
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000\ link/ether f0:de:f1:b0:03:20 brd ff:ff:ff:ff:ff:ff
[4/5149]mh at swivel:~ $
My ethernet is still enp0s25, what am I doing wrong?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
More information about the systemd-devel
mailing list