Wi-Fi

From Alpine Linux
Revision as of 17:00, 18 February 2010 by Ncopa (talk | contribs) (Created page with 'This document describes how to set up a wireless network connection with WPA encryption. First make sure your wireless drivers are loded properly. Install wireless_tools and wp...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This document describes how to set up a wireless network connection with WPA encryption.

First make sure your wireless drivers are loded properly.

Install wireless_tools and wpa_supplicant.

apk add wireless_tools wpa_supplicant

Bring the link up so we can look for wireless networks.

ip link set wlan0 up

Find a network to connect to. Look for the ESSID. In this example we will use the ESSID "MyNet"

iwlist wlan0 scanning

Lets set the ESSID.

iwconfig wlan0 essid MyNet

We need to create a shared key for wpa_supplicant.

wpa_passphrase MyNet > wpa.conf

It will wait for the password from stdin. Enter the password and enter. Now you will have a wpa.conf file with the preshared key.

start wpa_supplicant with the generated config

wpa_supplicant -Dwext -iwlan0 -c ./wpa.conf

From another console, start dhcpcd

dhcpcd wlan0

You should get an IP address