iwd

As you may know, I really, really, dislike Network Manager. Luckily, there's now a superior replacement for wpa_supplicant, namely iwd. iwd also has builtin configuration and command line interface, giving me all I want:

iwd configuration

Configuration for all your networks are stored in:

/var/lib/iwd

There's one configuration file per network/access point. The suffix indicates the kind of security used, e.g: .psk files are for networks using a preshared key and .open files are for access points not requiring any authentication.

Setting static IP

First tell iwd to attempt assigning IP, netmask and so on:

# vim /etc/iwd/main.conf
[General]
EnableNetworkConfiguration=true

â„šī¸ Note, the main.conf cannot be a symlink, it must be a regular file.

Then, add this to your .psk file:

# vim /var/lib/iwd/foo.psk
[IPv4]
Address=192.168.1.18
Netmask=255.255.255.0
Gateway=192.168.1.1
Broadcast=192.168.1.255
DNS=192.168.1.1

~ /home 🏠 ~ talks đŸ’Ŧ ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ đŸŽĨ youtube.com/@skybert