Difficulty with iwd and systemd-networkd
[SOLVED] See comments below, as well as the edit to the original post.
Hi fellow Archers,
I recently installed iwd and subsequently disabled NetworkManager and wpa_supplicant. I created the necessary configuration files in /etc/systemd/network and am able to successfully connect to the Internet. However, there are three annoying obstacles that I would like to overcome:
-
When rebooting, I do not automatically connect to my saved network, even though iwd shows it in its known-networks list. It's entirely possible that this issue will be resolved once the remaining two issues are corrected...
-
When attempting to connect to my home network via iwctl, I'm forced to re-enter the password each time, even though I was able to manually verify that the password is saved correctly.
-
Once I've entered my network's password, the connection to my network hangs until I restart systemd-networkd, after which point my connection works flawlessly.
I know iwd is somewhat new, so there's not as many threads on it as, say, NetworkManager. Any advice would be greatly appreciated!
Edit: it seems that it doesn't matter when I restart systemd-networkd, which leads me to believe that there's some sort of timing dependency that requires iwd to start before systemd-networkd. Seems odd, but I won't rule that possibility out just yet.
Edit 2: Problem solved, I didn't have systemd-networkd.service enabled since I assumed it was enabled by default. Now everything works perfectly as expected.
Posted Jan 12, 2019, 5:32 AM UTC · edited
I'm assuming you have
iwd.serviceandsystemd-networkd.serviceenabled and that your home network uses WPA2 Personal... Did you double checked the network profiles are stored in /var/lib/iwd, and when you enterknown-networks listin iwctl it gives you your home network?That's all correct. Both services are enabled, and known-networks list displays my home network. Manually viewing relevant the file in /var/lib/iwd also shows that the correct password has been saved.
Edit: Wait, no, I hadn't enabled systemd-networkd. Since it was always running whenever I checked it, I assumed it was enabled. Holy hell, what a rookie mistake. Thank you so much!
No problemo :) glad you're up and running.
Now if only iwd worked with eduroam.....
Iwd should work with eduroam starting with kernel 4.20. Haven't tested it but the patches needed to make it work are in place
I believe I tried it with 4.20.2. I will try again but since iwd is so new there are basically no error messages indicating what went wrong during authentication via journalctl -xe.