You are not logged in.

#1 2020-07-12 15:11:31

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

[SOLVED] Using iwd after successful install

Synopsys:  Create /etc/iwd/main.conf as detailed below.


I have no issues connecting to the Internet during the install from the 2020.07 Arch iso.

The new install has iwd:

pacman -Q iwd                                                                                                                                                                                                      !

 
iwd 1.8-1

I seem to have successfully connected to my wi-fi network from within the new install:

iwctl station wlan0 show                                                                                                                                                                                      !


                                 Station: wlan0                                
--------------------------------------------------------------------------------
  Settable  Property            Value                                          
--------------------------------------------------------------------------------
            Scanning            no
            State               connected
            Connected network   myWiFiTO  
            

It even seens to reconnect automatically on reboot:

iwctl station wlan0 get-networks                                        :

 
                               Available networks                              
--------------------------------------------------------------------------------
    Network name                    Security  Signal
--------------------------------------------------------------------------------
    Rogers91838-5G                  psk       ****  
    Pearce_IoT                      psk       ****
    Bebop                           psk       ****
    Franternet                      psk       ****
    Surfer                          psk       ****
    TheSwayzeExpress - 2.4Ghz       psk       ****
    Mucky                           psk       ****
    Tell_My_WiFi_Luv_Her            psk       ****
    Wu                              psk       ****
    meshAirsonics_89K9              psk       ****
  > myWiFiTO                        psk       ****  

The related services seem to be in order:

systemctl status systemd-networkd                                                                                                                                                                             :

 
● systemd-networkd.service - Network Service
     Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2020-07-12 09:55:26 EDT; 6min ago
TriggeredBy: ● systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
   Main PID: 3973 (systemd-network)
     Status: "Processing requests..."
      Tasks: 1 (limit: 9381)
     Memory: 2.9M
     CGroup: /system.slice/systemd-networkd.service
             └─3973 /usr/lib/systemd/systemd-networkd

Jul 12 09:55:25 64SSDx3 systemd[1]: Starting Network Service...
Jul 12 09:55:26 64SSDx3 systemd-networkd[3973]: Enumeration completed
Jul 12 09:55:26 64SSDx3 systemd-networkd[3973]: enp2s0: Interface name change detected, enp2s0 has been renamed to eth0.
Jul 12 09:55:26 64SSDx3 systemd[1]: Started Network Service.
Jul 12 09:55:26 64SSDx3 systemd-networkd[3973]: eth0: Interface name change detected, eth0 has been renamed to enp2s0.
Jul 12 09:55:33 64SSDx3 systemd-networkd[3973]: wlan0: Link UP
Jul 12 09:57:52 64SSDx3 systemd-networkd[3973]: wlan0: Gained carrier
Jul 12 09:57:52 64SSDx3 systemd-networkd[3973]: wlan0: Connected WiFi access point: myWiFiTO (f4:17:b8:a4:48:81)
Jul 12 09:57:53 64SSDx3 systemd-networkd[3973]: wlan0: Gained IPv6LL


systemctl status systemd-resolved                                                                                                                                                                             :

 
● systemd-resolved.service - Network Name Resolution
     Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2020-07-12 09:55:27 EDT; 7min ago
       Docs: man:systemd-resolved.service(8)
             https://www.freedesktop.org/wiki/Software/systemd/resolved
             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
   Main PID: 4141 (systemd-resolve)
     Status: "Processing requests..."
      Tasks: 1 (limit: 9381)
     Memory: 12.9M
     CGroup: /system.slice/systemd-resolved.service
             └─4141 /usr/lib/systemd/systemd-resolved

Jul 12 09:55:27 64SSDx3 systemd[1]: Starting Network Name Resolution...
Jul 12 09:55:27 64SSDx3 systemd-resolved[4141]: Positive Trust Anchors:
Jul 12 09:55:27 64SSDx3 systemd-resolved[4141]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
Jul 12 09:55:27 64SSDx3 systemd-resolved[4141]: Negative trust anchors: 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.17>
Jul 12 09:55:27 64SSDx3 systemd-resolved[4141]: Using system hostname '64SSDx3'.
Jul 12 09:55:27 64SSDx3 systemd[1]: Started Network Name Resolution.
lines 1-20/20 (END)



systemctl status iwd.service                                                                                                                                                                                  :

 
● iwd.service - Wireless service
     Loaded: loaded (/usr/lib/systemd/system/iwd.service; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2020-07-12 09:55:33 EDT; 8min ago
   Main PID: 4149 (iwd)
      Tasks: 1 (limit: 9381)
     Memory: 2.0M
     CGroup: /system.slice/iwd.service
             └─4149 /usr/lib/iwd/iwd

Jul 12 09:55:33 64SSDx3 systemd[1]: Starting Wireless service...
Jul 12 09:55:33 64SSDx3 iwd[4149]: Wireless daemon version 1.8
Jul 12 09:55:33 64SSDx3 iwd[4149]: station: Network configuration is disabled.
Jul 12 09:55:33 64SSDx3 iwd[4149]: Wiphy: 0, Name: phy0
Jul 12 09:55:33 64SSDx3 iwd[4149]:         Permanent Address: f8:1a:67:f6:22:36
Jul 12 09:55:33 64SSDx3 iwd[4149]:         Bands: 2.4 GHz
Jul 12 09:55:33 64SSDx3 iwd[4149]:         Ciphers: CCMP TKIP BIP
Jul 12 09:55:33 64SSDx3 iwd[4149]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go
Jul 12 09:55:33 64SSDx3 systemd[1]: Started Wireless service.
Jul 12 09:57:52 64SSDx3 iwd[4149]: hardware_rekey not supported

Still I can't access the Internet:

ping 8.8.8.8                                                                                                                                                                                                       :

 
ping: connect: Network is unreachable
                                       
                                       
ping archlinux.org                                                                                                                                                                                                 :

 
ping: archlinux.org: Name or service not known

So what am I missing?

Last edited by KairiTech (2020-07-12 16:03:58)

Offline

#2 2020-07-12 15:29:23

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [SOLVED] Using iwd after successful install

Have you assigned any IP addresses?

ip a
ip r

https://wiki.archlinux.org/index.php/Iw … figuration

Offline

#3 2020-07-12 15:30:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] Using iwd after successful install

Do you have an IP?

Offline

#4 2020-07-12 16:02:28

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [SOLVED] Using iwd after successful install

Head_on_a_Stick wrote:

Have you assigned any IP addresses?

ip a
ip r

https://wiki.archlinux.org/index.php/Iw … figuration

Perfect!  Thank you.  I created /etc/iwd/main.conf as shown below and I can access the Internet now.

[General]
EnableNetworkConfiguration=true

[Network]
NameResolvingService=systemd

Offline

#5 2020-07-15 06:13:04

Enrico1989
Member
Registered: 2018-07-05
Posts: 201

Re: [SOLVED] Using iwd after successful install

Hello, I have an issue very similar to (if not the same as) this. Shoud I open a new thread anyway? Since the post is 3 days old only, I think I'm not necrobumping, am I?

Nevermind, the output of

# systemctl status iwd.service

was pretty clear about what I had to do

● iwd.service - Wireless service
     Loaded: loaded (/usr/lib/systemd/system/iwd.service; disabled; vendor preset: disabled)
     Active: active (running) since Wed 2020-07-15 08:09:12 CEST; 11min ago
   Main PID: 396 (iwd)
      Tasks: 1 (limit: 18938)
     Memory: 2.4M
     CGroup: /system.slice/iwd.service
             └─396 /usr/lib/iwd/iwd

Jul 15 08:09:12 redviper iwd[396]: Wireless daemon version 1.8
Jul 15 08:09:12 redviper iwd[396]: Loaded configuration from /etc/iwd/main.conf
Jul 15 08:09:12 redviper systemd[1]: Started Wireless service.
Jul 15 08:09:12 redviper iwd[396]: Wiphy: 0, Name: phy0
Jul 15 08:09:12 redviper iwd[396]:         Permanent Address: 9c:fc:e8:24:32:13
Jul 15 08:09:12 redviper iwd[396]:         Bands: 2.4 GHz 5GHz
Jul 15 08:09:12 redviper iwd[396]:         Ciphers: CCMP TKIP BIP
Jul 15 08:09:12 redviper iwd[396]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
Jul 15 08:09:12 redviper iwd[396]: resolve-systemd: Failed to add DNS entries. Is 'systemd-resolved' service running?
Jul 15 08:09:12 redviper iwd[396]: resolve-systemd: Failed to add domain name. Is 'systemd-resolved' service running?

So I enabled and started both systemd-resolved and iwd.service, and now the connection happens when booting (before loggin in, actually hmm ).

I hope this can be helpful to some other newbie coming across this thread.

Last edited by Enrico1989 (2020-07-15 06:37:02)

Offline

#6 2022-02-12 00:54:59

robafovio
Member
Registered: 2019-11-17
Posts: 3

Re: [SOLVED] Using iwd after successful install

Thank you so much. After hours of search I finded your brilliant thread. ?

Last edited by robafovio (2022-02-12 00:55:21)

Offline

Board footer

Powered by FluxBB