https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&user=Rien&feedformat=atom
Alpine Linux - User contributions [en]
2024-03-28T10:16:45Z
User contributions
MediaWiki 1.40.0
https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_3_-_Configuring_it_as_wireless_access_point_-AP_Mode&diff=15236
Raspberry Pi 3 - Configuring it as wireless access point -AP Mode
2018-04-16T14:38:15Z
<p>Rien: Raspberry pi firmware can be installed with apk</p>
<hr />
<div>=Install the necessary firmware=<br />
<br />
apk add linux-firmware-brcm<br />
apk add raspberrypi-libs<br />
<br />
<br />
=Install hostapd and dnsmasq=<br />
<br />
apk add hostapd<br />
apk add dnsmasq<br />
<br />
=Configure /etc/hostapd/hostapd.conf=<br />
<br />
interface=wlan0<br />
driver=nl80211<br />
ssid=Pi3-AP<br />
hw_mode=g<br />
channel=1<br />
macaddr_acl=0<br />
auth_algs=1<br />
wpa=2<br />
wpa_key_mgmt=WPA-PSK<br />
wpa_passphrase=raspberry<br />
rsn_pairwise=CCMP<br />
wpa_pairwise=CCMP<br />
<br />
=Configure your /etc/dnsmasq.conf=<br />
<br />
interface=wlan0<br />
dhcp-range=10.0.0.2,10.0.0.5,255.255.255.0,12h<br />
<br />
=Configure Static ips for wlan0 in the file /etc/network/interfaces=<br />
<br />
auto wlan0<br />
iface wlan0 inet static<br />
address 10.0.0.1<br />
netmask 255.255.255.0<br />
<br />
=Start the services=<br />
<br />
service dnsmasq start<br />
service hostapd start<br />
<br />
=Enable the Services permanently on every bootup=<br />
<br />
rc-update add dnsmasq <br />
rc-update add hostapd <br />
<br />
(to del)<br />
<br />
rc-update del dnsmasq <br />
rc-update del hostapd <br />
<br />
(or)<br />
<br />
rc-update add dnsmasq boot <br />
rc-update add hostapd boot <br />
<br />
(to del)<br />
<br />
rc-update del dnsmasq boot <br />
rc-update del hostapd boot<br />
<br />
=Commit all changes to files=<br />
<br />
Make sure you run the below command to commit all changes otherwise they will be lost on reboot<br />
<br />
lbu ci<br />
<br />
=References=<br />
https://gist.github.com/atlury/fe0ea8b91a981c103df7<br />
<br />
https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/<br />
<br />
Thanks<br />
oneinsect@gmail.com<br />
<br />
[[Category:Networking]]<br />
[[Category:Embedded Systems]]</div>
Rien