3 # Wireless Network Quick Start
5 This section illustrates the basic procedure to connect a DragonFly system to an existing wireless network. The next section will go into detail should that be required.
7 ## Use WPA Supplicant from DPorts
9 DragonFly comes with WPA Supplicant in base, but it is an older version (2.1) that will not be updated again. At the time of this writing, the version of WPA Supplicant in DPorts is 2.4. The version in base can be used as a fallback though.
11 ### Option 1: Install WPA Supplicant from binary package
13 > pkg ins wpa_supplicant
15 ### Option 2: Build WPA Supplicant from source
17 Assuming DPorts has been installed and is up to date,
19 > cd /usr/dports/security/wpa_supplicant
20 > make clean ; make install
22 ### Update /etc/rc.conf
24 In order to use the new WPA Supplicant over the base version, it must be configured in rc.conf . The following will accomplish this on systems using default locations:
26 > echo wpa_supplicant_program="/usr/local/sbin/wpa_supplicant" >> /etc/rc.conf
30 Obtain the SSID (Service Set Identifier) and PSK (Pre-Shared Key) for the wireless network from the network administrator.
34 Identify the wireless adapter. The DragonFly GENERIC kernel includes drivers for many common wireless adapters. If the wireless adapter is one of those models, it will be shown in the output from ifconfig(8):
36 > ifconfig | grep -B3 -i wireless
38 If a wireless adapter is not listed, an additional kernel module might be required, or it might be a model not supported by DragonFly. This example shows the Ralink ral0 wireless adapter.
40 ## Configure WPA Supplicant
42 Add an entry for this network to /etc/wpa_supplicant.conf. If the file does not exist, create it. Replace _myssid_ and _mypsk_ with the SSID and PSK provided by the network administrator.
51 Add entries to /etc/rc.conf to configure the network on startup:
54 ifconfig_wlan0="WPA DHCP"
56 ## Start wireless service
58 Restart the computer, or restart the network service to connect to the network:
60 > service netif restart