You are not logged in.

#1 2020-03-26 06:33:38

rlashof
Member
Registered: 2020-03-26
Posts: 2

[SOLVED] dhcpcd fails on boot interface not found

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

#2 2020-03-26 07:44:33

seth
Member
Registered: 2012-09-03
Posts: 49,981

Offline

#3 2020-03-27 05:04:00

rlashof
Member
Registered: 2020-03-26
Posts: 2

Re: [SOLVED] dhcpcd fails on boot interface not found

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

#4 2020-04-11 15:54:42

pinsl
Member
Registered: 2016-02-07
Posts: 7

Re: [SOLVED] dhcpcd fails on boot interface not found

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

Board footer

Powered by FluxBB