<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Emilia</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Emilia"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Emilia"/>
	<updated>2026-05-10T20:52:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Iwd&amp;diff=26502</id>
		<title>Iwd</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Iwd&amp;diff=26502"/>
		<updated>2024-02-26T14:15:47Z</updated>

		<summary type="html">&lt;p&gt;Emilia: added a character to fix a faulty path&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:iwd}}&lt;br /&gt;
&lt;br /&gt;
iwd (&#039;&#039;&#039;i&#039;&#039;&#039;Net &#039;&#039;&#039;W&#039;&#039;&#039;ireless &#039;&#039;&#039;D&#039;&#039;&#039;aemon) is a wireless daemon for Linux. It is written by Intel and aims to replace &amp;lt;code&amp;gt;wpa_supplicant&amp;lt;/code&amp;gt;. The core goal of the project is to optimize resource utilization: storage, runtime memory and link-time costs. This is accomplished by not depending on any external libraries and utilizes features provided by the Linux Kernel to the maximum extent possible. The result is a self-contained environment that only depends on the Linux Kernel and the runtime C library.&lt;br /&gt;
&lt;br /&gt;
Potential benefits of iwd include:&lt;br /&gt;
&lt;br /&gt;
* simplification of network management&lt;br /&gt;
* faster network discovery&lt;br /&gt;
* fast and reliable roaming&lt;br /&gt;
* using less system resources&lt;br /&gt;
* using features offered by the Linux kernel&lt;br /&gt;
* support for enterprise security methods like EAP&lt;br /&gt;
* support for kernel asymmetric key rings and [https://en.wikipedia.org/wiki/Trusted_Platform_Module Trusted Platform Modules (TPM)]&lt;br /&gt;
* support for multiple clients&lt;br /&gt;
&lt;br /&gt;
{{Pkg|iwd|arch=}} is supported since [https://alpinelinux.org/posts/Alpine-3.10.0-released.html Alpine Linux 3.10].&lt;br /&gt;
&lt;br /&gt;
== Installation and setup ==&lt;br /&gt;
&lt;br /&gt;
To install &amp;lt;code&amp;gt;iwd&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add {{Pkg|iwd}}}}&lt;br /&gt;
&lt;br /&gt;
To start &amp;lt;code&amp;gt;iwd&amp;lt;/code&amp;gt;:&lt;br /&gt;
{{cmd|# rc-service iwd start}}&lt;br /&gt;
&lt;br /&gt;
To have iwd start automatically on every boot (recommended):&lt;br /&gt;
{{cmd|# rc-update add iwd default}}&lt;br /&gt;
&lt;br /&gt;
{{Note|iwd requires {{pkg|dbus|arch=}} to be running.}}&lt;br /&gt;
&lt;br /&gt;
Next you will want to decide if you want to use iwd by itself, with NetworkManager, or with ifupdown-ng:&lt;br /&gt;
&lt;br /&gt;
=== Use iwd by itself === &lt;br /&gt;
To have iwd do all networking configuration on its own upon connecting to a wi-fi network, edit the configuration file {{path|/etc/iwd/main.conf}} and set the {{ic|EnableNetworkConfiguration}} directive in the {{ic|[General]}} section to {{ic|True}}. For example:&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/iwd/main.conf|[General]&lt;br /&gt;
EnableNetworkConfiguration{{=}}True}}&lt;br /&gt;
&lt;br /&gt;
=== Use iwd as a networkmanager Backend ===&lt;br /&gt;
{{main|NetworkManager#iwd backend}}&lt;br /&gt;
iwd can be used as a replacement for the wpa_supplicant backend in NetworkManager. See [[NetworkManager#iwd_backend|the relevant NetworkManager section]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Use iwd with ifupdown-ng ===&lt;br /&gt;
iwd can delegate the responsibility dealing with IP address assignment (either static or DHCP) to ifupdown-ng. To do this edit the {{path|/etc/network/interfaces}} file. For example, if you are using DHCP on the wlan0 interface:&lt;br /&gt;
{{cat|/etc/network/interfaces|auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
auto wlan0&lt;br /&gt;
iface wlan0 inet dhcp}}&lt;br /&gt;
&lt;br /&gt;
== Usage of iwctl command ==&lt;br /&gt;
&lt;br /&gt;
The iwd package provides the client program &amp;lt;code&amp;gt;iwctl&amp;lt;/code&amp;gt;, the daemon &amp;lt;code&amp;gt;iwd&amp;lt;/code&amp;gt; and the Wi-Fi monitoring tool &amp;lt;code&amp;gt;iwmon&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Begin by starting the client:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ iwctl}}&lt;br /&gt;
&lt;br /&gt;
To list all available commands:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# help&lt;br /&gt;
&lt;br /&gt;
=== Connect to a network ===&lt;br /&gt;
&lt;br /&gt;
First, if you do not know your wireless device name, list all Wi-Fi devices:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# device list&lt;br /&gt;
&lt;br /&gt;
If the device or its corresponding adapter is turned off, turn it on:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# device &#039;&#039;device&#039;&#039; set-property Powered on&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# adapter &#039;&#039;adapter&#039;&#039; set-property Powered on&lt;br /&gt;
&lt;br /&gt;
Then, to initiate a scan for networks (note that this command will not output anything):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# station &#039;&#039;device&#039;&#039; scan&lt;br /&gt;
&lt;br /&gt;
You can then list all available networks:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# station &#039;&#039;device&#039;&#039; get-networks&lt;br /&gt;
&lt;br /&gt;
Finally, to connect to a network:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# station &#039;&#039;device&#039;&#039; connect &#039;&#039;SSID&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If a passphrase is required, you will be prompted to enter it. Alternatively, you can supply it as a command line argument:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ iwctl –passphrase &#039;&#039;passphrase&#039;&#039; station &#039;&#039;device&#039;&#039; connect &#039;&#039;SSID&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
* iwd automatically stores network passphrases in the {{Path|/var/lib/iwd}} directory and uses them to auto-connect in the future.&lt;br /&gt;
* If you run diskless Alpine, be sure to commit: {{Cmd|# lbu add /var/lib/iwd &amp;amp;&amp;amp; lbu commit -d}}&lt;br /&gt;
* To connect to a network with spaces in the SSID, the network name should be double quoted when connecting.&lt;br /&gt;
* iwd only supports PSK pass-phrases from 8 to 63 ASCII-encoded characters. }}&lt;br /&gt;
&lt;br /&gt;
=== Disconnect from a network ===&lt;br /&gt;
&lt;br /&gt;
To disconnect from a network:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# station &#039;&#039;device&#039;&#039; disconnect&lt;br /&gt;
&lt;br /&gt;
=== Show device and connection information ===&lt;br /&gt;
&lt;br /&gt;
To display the details of a WiFi device, like MAC address:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# device &#039;&#039;device&#039;&#039; show&lt;br /&gt;
&lt;br /&gt;
To display the connection state, including the connected network of a Wi-Fi device:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# station &#039;&#039;device&#039;&#039; show&lt;br /&gt;
&lt;br /&gt;
=== Manage known networks ===&lt;br /&gt;
&lt;br /&gt;
To list networks you have connected to previously:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# known-networks list&lt;br /&gt;
&lt;br /&gt;
To forget a known network:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;[iwd]&amp;lt;/span&amp;gt;# known-networks &#039;&#039;SSID&#039;&#039; forget&lt;br /&gt;
&lt;br /&gt;
{{Note|It is not possible to assign a priority to a network, instead iwd will prioritize networks based on:&lt;br /&gt;
&lt;br /&gt;
* signal strength level&lt;br /&gt;
* security features&lt;br /&gt;
* maximum rate&lt;br /&gt;
* channel utilization&lt;br /&gt;
* time since the last connect.}}&lt;br /&gt;
&lt;br /&gt;
== Dedicated GUI (iwgtk) ==&lt;br /&gt;
&lt;br /&gt;
[[File:Iwgtk screenshot.png|thumb|right|100px|alt=iwgtk showing list of networks|iwgtk]]&lt;br /&gt;
&lt;br /&gt;
iwgtk is a wireless networking GUI for Linux with supported functionality similar to that of &amp;lt;code&amp;gt;iwctl&amp;lt;/code&amp;gt;. Features include viewing and connecting to available networks, managing known networks, provisioning new networks via WPS or Wi-Fi Easy Connect, and an indicator (tray) icon displaying connection status and signal strength.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add {{Pkg|iwgtk}}}}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If {{ic|iwctl}} commands fail with the message {{ic|The name net.connman.iwd was not provided by any .service files  Failed to retrieve IWD dbus objects, quitting...}}, this means that the {{ic|iwd}} daemon is not started.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Wi-Fi]]&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Iwd iwd on Gentoo Wiki]&lt;br /&gt;
* [https://wiki.archlinux.org/title/Iwd iwd on ArchWiki]&lt;br /&gt;
* [https://iwd.wiki.kernel.org/start iwd Wiki]&lt;br /&gt;
* [https://github.com/J-Lentz/iwgtk iwgtk: Lightweight wireless networking GUI (front-end for iwd)]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Emilia</name></author>
	</entry>
</feed>