Iwd

From ArchWiki
Revision as of 19:52, 13 May 2018 by Shibumi (talk | contribs) (added some examples)
Jump to navigation Jump to search

IWD is an up-and-coming wireless daemon for Linux. It is written by Intel and aims to replace wpa_supplicant. It comes with different enhancements like an own crypto-library, called ELL, which docks directly into the Linux Kernel cryptography. IWD follows a more simple, more secure and more modern approach.

Installation

Install the iwd package, which includes the client programm iwctl, the daemon iwd and the wifi monitoring tool iwmon. IWD works standalone or in combination with connman or networkmanager.


Overview

The first step is to have the iwd daemon up and running:

# systemctl enable iwd.service --now

Then you can control your wireless settings via the command iwctl. This command will open an interactive shell in the context of IWD.

Basic usage

Displaying all physical wifi devices

# iwctl
[iwd]# device list
                                    Devices                                   *
--------------------------------------------------------------------------------
  Name                Address             State          Adapter   
--------------------------------------------------------------------------------
  wlp2s0b1            5c:ac:4c:ab:3f:7d   disconnected   phy0              

Scanning for networks

# iwctl
[iwd]# device wlp2s0b1 scan 
[iwd]# device wlp2s0b1 get-networks
                               Available networks                             *
--------------------------------------------------------------------------------
    Network name                    Security  Signal
--------------------------------------------------------------------------------
    TestWPA                         psk       ****
    TestWPA2                        psk       ****

Connecting to a WPA2 protected access point

# iwctl
[iwd]# device wlp2s0b1 connect TestWPA2
Type the network passphrase for TestWPA2 psk.                                   
Passphrase: *********************                                               
[iwd]# device wlp2s0b1 get-networks
                               Available networks                              
--------------------------------------------------------------------------------
    Network name                    Security  Signal
--------------------------------------------------------------------------------
    TestWPA                         psk       ****
 > TestWPA2                        psk       ****