<?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=Cpadden</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=Cpadden"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Cpadden"/>
	<updated>2026-04-27T19:33:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Wi-Fi&amp;diff=13161</id>
		<title>Wi-Fi</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Wi-Fi&amp;diff=13161"/>
		<updated>2017-03-12T23:56:14Z</updated>

		<summary type="html">&lt;p&gt;Cpadden: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document describes how to set up a wireless network connection with WPA encryption.&lt;br /&gt;
&lt;br /&gt;
First make sure your wireless drivers are loaded properly. (if you are using a Broadcom chipset, see note at the end of this post.)&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|wireless-tools}} and {{Pkg|wpa_supplicant}}.&lt;br /&gt;
{{Cmd|apk add wireless-tools wpa_supplicant}}&lt;br /&gt;
&lt;br /&gt;
Bring the link up so we can look for wireless networks. (An error here means you probably need extra drivers/firmware.)&lt;br /&gt;
{{Cmd|ip link set wlan0 up}}&lt;br /&gt;
&lt;br /&gt;
Find a network to connect to. Look for the ESSID. In this example we will use the ESSID &amp;quot;MyNet&amp;quot;.&lt;br /&gt;
{{Cmd|iwlist wlan0 scanning}}&lt;br /&gt;
&lt;br /&gt;
Let&#039;s set the ESSID:&lt;br /&gt;
{{Cmd|iwconfig wlan0 essid MyNet}}&lt;br /&gt;
&lt;br /&gt;
We need to create a shared key for wpa_supplicant.&lt;br /&gt;
{{Cmd|wpa_passphrase MyNet &amp;gt; wpa.conf}}&lt;br /&gt;
It will wait for the password from stdin. Enter the password and enter. Now you will have a {{Path|wpa.conf}} file with the preshared key.&lt;br /&gt;
&lt;br /&gt;
Start wpa_supplicant with the generated config:&lt;br /&gt;
{{Cmd|wpa_supplicant -Dwext -iwlan0 -c ./wpa.conf}}&lt;br /&gt;
&lt;br /&gt;
From another console, start dhcpcd:&lt;br /&gt;
{{Cmd|udhcpc -i wlan0}}&lt;br /&gt;
&lt;br /&gt;
You should get an IP address.&lt;br /&gt;
&lt;br /&gt;
You then want to make the connection process automatic on boot-up.  Open {{Path|/etc/network/interfaces}} and add the following stanza:&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
{{Note|I had to append `pre-up iwconfig wlan0 essid &amp;lt;ESSID&amp;gt;` to automatically connect to the network.}}&lt;br /&gt;
&lt;br /&gt;
You will also need to set wpa_supplicant to start automatically on boot:&lt;br /&gt;
{{Cmd|rc-update add wpa_supplicant boot}}&lt;br /&gt;
&lt;br /&gt;
Next, create {{Path|/etc/wpa_supplicant/}} (permissions of 755 with root:root are fine), and move {{Path|wpa.conf}} into that folder, renaming it to {{Path|wpa_supplicant.conf}}.&lt;br /&gt;
&lt;br /&gt;
Reboot and check that you are associated with the access point:&lt;br /&gt;
{{Cmd|iwconfig wlan0}}&lt;br /&gt;
and check that you got a DHCP lease:&lt;br /&gt;
{{Cmd|ifconfig wlan0 {{!}} grep addr}}&lt;br /&gt;
&lt;br /&gt;
{{Note|BROADCOM WIFI CHIPSET USERS will need to compile the firmware manually for their chipset.  First, apk add alpine-sdk, then git clone aports from git.alpinelinux.org, switch to the aports/non-free/b43-firmware folder, then run abuild -r.  Install the generated apk file.  Run fwcutter, and you should be good to go.}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Cpadden</name></author>
	</entry>
</feed>