You are not logged in.

#1 2020-12-31 18:45:18

normalaccount
Member
Registered: 2020-11-12
Posts: 20

Cannot connect to wifi using iwd

Hey,

Been using Arch for a couple of months and for the last months, I was able to connect to a single network using iwd. I was only able to connect to one network and had issues, so I'm trying to fix it now but I don't have access to the wifi at all now.

I can connect to networks using iwd, but I don't have access to the wifi which is weird. Per example,  pinging Google will return a failure in name resolution even though I'm connected to my network.

I thought it was a driver issue, so I downloaded the driver files for my ax200 card on the Intel site and pasted them in the /lib/firmware folder. That didn't help.

When I do the "ip link" command, wlan0 shows up also the interface even though my  interface is wlp59s0 as shown on Ubuntu.

Any help would be appreciated. I've reinstalled iwd, I've made sure that no other conflicting network backends were in use, but nothing seems to work so far

Last edited by normalaccount (2020-12-31 19:05:35)

Offline

#2 2020-12-31 19:21:55

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to wifi using iwd

normalaccount wrote:

pinging Google will return a failure in name resolution even though I'm connected to my network

Sounds like you haven't set a nameserver: https://wiki.archlinux.org/index.php/Do … resolution

normalaccount wrote:

When I do the "ip link" command, wlan0 shows up also the interface even though my  interface is wlp59s0 as shown on Ubuntu.

That is expected and set by usr/lib/systemd/network/80-iwd.link


Jin, Jîyan, Azadî

Offline

#3 2020-12-31 21:58:39

normalaccount
Member
Registered: 2020-11-12
Posts: 20

Re: Cannot connect to wifi using iwd

Head_on_a_Stick wrote:
normalaccount wrote:

pinging Google will return a failure in name resolution even though I'm connected to my network

Sounds like you haven't set a nameserver: https://wiki.archlinux.org/index.php/Do … resolution

normalaccount wrote:

When I do the "ip link" command, wlan0 shows up also the interface even though my  interface is wlp59s0 as shown on Ubuntu.

That is expected and set by usr/lib/systemd/network/80-iwd.link


Thanks for the answer. I've set a name server using the systemd-resolved default configuration with NetworkManager and /etc/resolv.conf returns the following lines:

"# Generated by NetworkManager
nameserver ::1
nameserver 127.0.0.1"

However, pinging returns the following error:

"Name or service not known"

Any idea on how to fix that?

Offline

#4 2020-12-31 22:31:17

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: Cannot connect to wifi using iwd

resolvectl status

Offline

#5 2020-12-31 23:14:30

normalaccount
Member
Registered: 2020-11-12
Posts: 20

Re: Cannot connect to wifi using iwd

resolvctl output:

Global:

Protocols: +LLMNR +mDNS ...
resolv.conf mode: missing
Current DNS Server: 8.8.8.8
DNS Servers: 8.8.8.8 8.8.4.4
Fallback DNS Servers: 1.1.1.1 9.9.9.10 8.8.8.8 ...

Link 3 (wlan0):

Current scopes: none
Protocols: -Defaultroute +LLMNR ...

Last edited by normalaccount (2020-12-31 23:14:50)

Offline

#6 2020-12-31 23:32:07

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to wifi using iwd

normalaccount wrote:

I've set a name server using the systemd-resolved default configuration with NetworkManager

You should explain exactly how you did that instead of vaguely describing it.

The recommended mode of operation for systemd-resolved is to symlink /etc/resolv.conf to the stub resolver:

# ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

NM should automatically use systemd-resolved if this is done, at least according to the ArchWiki.

Personally I prefer to list the desired nameservers explictly in /etc/resolv.conf (ie, without a symlink). If you want to do this with NM then see https://wiki.archlinux.org/index.php/Ne … esolv.conf


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB