Hostapd Essentials

Linux Logo

Hostapd Essentials

Hostadp Host Access Point Daemon.
Userspace access point for turning network interface cards into Access Points and authentication servers.

Install

sudo apt install hostapd

Start Hostapd

sudo systemctl start hostapd

Stop Hostapd

sudo systemctl stop hostapd

Configure Hostapd

sudo nano /hostapd/hostapd.conf

Config Example

interface=wlan0
driver=nl80211
ssid=PiAP
hw_mode=g
channel=6
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=raspberry
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

Hostapd Options

To use the 5 GHz band, you can change the operations mode from hw_mode=g to hw_mode=a. Possible values for hw_mode are:

a = IEEE 802.11a (5 GHz)
b = IEEE 802.11b (2.4 GHz)
g = IEEE 802.11g (2.4 GHz)
,