You are not logged in.

#1 2021-01-13 09:33:34

Kotrfa
Member
Registered: 2012-10-25
Posts: 202

how to make network devices naming predictable again after iwd install

Hi,

I have two wifi devices: builtin intel wifi card and then USB TPLINK dongle. I started to use IWD and due to https://wiki.archlinux.org/index.php/Iw … ed_by_udev the devices are no longer getting predictable names and end up just with wlan0 or wlan1. I would be fine with that, but the problem is that the names are sometimes switched and that makes scripts using these names broken... I tried to use udevadm rules:

$ cat /etc/udev/rules.d/20-network-interface-builtin-wifi-name.rules /etc/udev/rules.d/2-network-interface-dongle-name.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="f4:8c:50:84:c7:e0", NAME="cwbuiltinintel"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="d0:37:45:7b:9a:f7", NAME="cwusbtplink"

and even tried masking the iwd file:

# ln -s /dev/null /etc/systemd/network/80-iwd.link

but none of that worked - sometimes, only one of the devices is renamed (or none of them) etc. Is there a way how to achieve this? Thanks

Offline

#2 2021-01-15 10:46:54

justm3
Member
Registered: 2019-11-12
Posts: 29

Re: how to make network devices naming predictable again after iwd install

You may want to try creating /etc/systemd/system/iwd.service.d/override.conf with the following:
[Unit]
Before=network.target
Wants=network.target

[Service]
ExecStart=
ExecStart=/usr/lib/iwd/iwd --nointerfaces "wlp*"

Cheers.

Offline

Board footer

Powered by FluxBB