You are not logged in.

#1 2024-02-14 20:06:12

dootfs
Member
Registered: 2024-01-27
Posts: 24

[Solved] Wifi Connected, Unable to Reach Internet

Hello Newbie Corner,

Thanks to help from a few superusers I was able to install Arch.

Once booted into userspace, I try to connect to the network in order to update, etc, using iwctl - the same interface that I had used to connect to the web in the .iso live image.

[root@localhost /]# iwctl
Terminate
Waiting for IWD to start…

No problem, start the iw daemon manually, then run the interface.

[root@localhost /]# systemctl start iwd
[root@localhost /]# iwctl
NetworkConfigurationEnabled: disabled
StateDirectory: /var/lib/iwd
Version: 2.14
[iwd]# station wlan0 connect home_wifi (security)
[iwd]# quit
[root@localhost /]# ip link
1: lo: <LOOPBACK, UP, LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: wlan0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
     link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
[root@localhost /]# ping archlinux.org
ping: archlinux.org : Temporary failure in name resolution

I understand that different network management packages rely on the same hardware resources, such that one package (like netctl) could prevent another (in this case iwctl) from running. So I checked my system against the Network Management wiki page using pacman to grep the packages list for conflicting packages. I made sure that none of the onboard network packages relied on wpa_supplicant, and kept iw and iwd installed.

Currently iw, iwd, and wpa_supplicant are installed, and I cannot connect. It doesn’t look like wpa_supplicant and iwd conflict, as the problem persists if I remove wpa_supplicant using pacman.

The problem is that iwctl indicates that the wifi network connection is established, but I cannot connect to the internet.

Any input would be appreciated.

Last edited by dootfs (2024-03-05 04:47:43)

Offline

#2 2024-02-14 20:38:43

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: [Solved] Wifi Connected, Unable to Reach Internet

After connecting with iwd, you'll have to request an IP address with DHCP. The ISO has configured systemd-networkd to do that.
For an easy solution you can enable the dhcp client in iwd or configure another one.

https://wiki.archlinux.org/title/Iwd#En … figuration
https://wiki.archlinux.org/title/Networ … k_managers


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2024-02-15 01:23:24

dootfs
Member
Registered: 2024-01-27
Posts: 24

Re: [Solved] Wifi Connected, Unable to Reach Internet

progandy wrote:

For an easy solution you can enable the dhcp client in iwd or configure another one.

Good tip. I was obviously looking in the wrong place. The /etc/iwd/main.conf file is now configured.

Same problem, though.

[root@localhost /]# iwctl
NetworkConfigurationEnabled: enabled
StateDirectory: /var/lib/iwd
Version: 2.14
[iwd]# station wlan0 connect home_wifi (security)
[iwd]# quit
[root@localhost /]# ip link
1: lo: <LOOPBACK, UP, LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: wlan0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
     link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
[root@localhost /]# ping archlinux.org
ping: archlinux.org : Temporary failure in name resolution

I’ve made a point to reboot iwd, forget and refresh the network profile, reset the wifi device, reboot the machine, etc. The configuration file is definitely picked up on reboot.

Name resolution fail. However;

[root@localhost /]# ping 8.8.8.8

seems to work. But;

[root@localhost /]# pacman -Syu

throws a name resolution error also.

This is definitely a DHCP / DNS issue.

Any input is appreciated.

Offline

#4 2024-02-15 06:45:25

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: [Solved] Wifi Connected, Unable to Reach Internet

There is another section about dns in the iwd article, have you read that?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2024-02-15 22:55:05

dootfs
Member
Registered: 2024-01-27
Posts: 24

Re: [Solved] Wifi Connected, Unable to Reach Internet

Yeah, I followed the examples in that section and modified main.conf to set systemd as the network Name Resolving Service.

[root@localhost /]# cat /etc/iwd/main.conf
[General]
EnableNetworkConfiguration=true

ManagementFrameProtection=1

[Network]
NameResolvingService=systemd

[Settings]
AutoConnect=true
AddressRandomization=network
AlwaysRandomizeAddress=true

[Scan]
DisableRoamingScan=true

I’ve read through all the relevant wiki pages about DHCP and DNS. I understand how it is supposed to work, but it’s not working.

Having modified /etc/systemd/resolved.conf to set a static DNS and fallback, I also went into the router and set the same static and fallback DNS.

The problem is that iwd supports DHCP via systemd, but is not working. The system can reach DNS servers such as CloudFlare using ping. However the system cannot resolve address names.

I have made modifications to /etc/iwd/main.conf and /etc/systemd/resolved.conf. What configuration files does systemd use to set DNS?

Offline

#6 2024-02-15 23:11:40

dootfs
Member
Registered: 2024-01-27
Posts: 24

Re: [Solved] Wifi Connected, Unable to Reach Internet

Nevermind! I figured it out by looking at the Talk:Network Configuration page.

The problem was simply that I didn’t have both iwd and systemd-resolved daemons running during the test.

I will simply set up a cronjob or similar to run both daemons at boot.

Thanks for your help!

Offline

#7 2024-02-16 11:01:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,104

Re: [Solved] Wifi Connected, Unable to Reach Internet

There's no need fro a dedicated cronjob for this...

https://wiki.archlinux.org/title/Systemd#Using_units

Offline

#8 2024-02-22 18:03:09

dootfs
Member
Registered: 2024-01-27
Posts: 24

Re: [Solved] Wifi Connected, Unable to Reach Internet

V1del wrote:

There's no need fro a dedicated cronjob for this...

https://wiki.archlinux.org/title/Systemd#Using_units

Right, I followed the Wiki and enabled the .service in order to run on boot.

Thanks for you help!

Should I mark this issue as [Solved]?

Offline

#9 2024-02-22 18:13:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,104

Re: [Solved] Wifi Connected, Unable to Reach Internet

If it is and you don't have any more questions you can do so by editing the title in your first post.

Offline

Board footer

Powered by FluxBB