How to enable predictable network interface names?

Ask questions about Arch Linux ARM. Please search before making a new topic.

How to enable predictable network interface names?

Postby schard » Thu Apr 12, 2018 7:44 am

Hi all,

I am using ArchLinux ARM on a RasPi 2 for some years now.
The integrated interface is named
Code: Select all
though I have not done any of the three steps mentioned at the bottom of (I don't like this, how do I disable this?).
My cmdline is
Code: Select all
bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  root=LABEL=root rw init=/usr/lib/systemd/systemd rootwait console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop

For network I use systemd-networkd:
Code: Select all
$ ls /etc/systemd/network/
$ cat /etc/systemd/network/


How can I get predictable network interface names like enp3s0?
Posts: 8
Joined: Thu Apr 12, 2018 7:37 am

Re: How to enable predictable network interface names?

Postby graysky » Thu Apr 12, 2018 10:50 pm

Do you plan to add multiple NICs to your Pi2?
Posts: 483
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: How to enable predictable network interface names?

Postby zebul666 » Fri Apr 20, 2018 6:17 pm

I want that too.

Currently I have 2 wifi USB cards connected to a rpi3B+ (plus the built-in one) and they constantly switch names at each reboot. That' s annoying.

I don't see how the systemd names are disabled because I don't see any files like /etc/udev/rules.d/80-net-setup-link.rules link to /dev/null or files in /etc/systemd/network or whatever.

So it's hard-coded in the kernel ? Because None of the rules to disable predictable names interface by systemd are used.

Then, I don't know how to disable that. Or enable predictable interface names, I mean.
Posts: 15
Joined: Fri Jul 10, 2015 4:55 pm

Return to User Questions

Who is online

Users browsing this forum: No registered users and 4 guests