You are not logged in.
Hello,
I am new to arch linux and trying to set up my first installation. I have completed the installation guide and have everything working. I have set up my wireless internet connection using iwd and dhcpcd. This works when I start the services manually via
systemctl start iwd
systemctl start dhcpcd@wlan0
I got tired of having to set it up every time I start my computer so I decided to figure out how to get this to work automatically on boot. It seems I should be able to do this just by enabling the services:
systemctl enable iwd
systemctl enable dhcpcd@wlan0
This is not working. iwd seems to start fine, but dhcpcd is failing with error:
wlan0: interface not found or invalid
If I restart the service with
systemctl restart dhcpcd@wlan0
everything seems to work. I do get an error towards the end of the service startup saying
dhcp6_openudp: Address already in use
but this doesn't seem to be blocking me from pinging 8.8.8.8 and the service is still listed as active (running) so I guess this is not a fatal error.
Any help understanding why dhcpcd is failing on the initial run at boot is greatly appreciated. Thanks!
Last edited by rlashof (2020-03-27 05:00:23)
Offline
Offline
Thanks so much for the reply! I did a little searching based on your recommendation. I didn't find a good example of an iwd hook for dhcpcd so I was planning to see if I could modify the wpa_supplicant one to work. Then I found that iwd comes with it's own build in dhcp client, hooray! All I needed to do was turn EnableNetworkConfiguration on and enable the
systemd-resolved
service. Now everything is working.
Offline
Just did this and it works perfectly. Thank you!
To help others reading this, this how /etc/iwd/main.conf should look like:
[General]
EnableNetworkConfiguration=true
[Network]
NameResolvingService=systemd
Offline