Difference between revisions of "Raspbian: RPi3 Stand Alone Access Point"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 104: | Line 104: | ||
sudo reboot | sudo reboot | ||
− | |||
− | |||
− | |||
− | |||
==Referensi== | ==Referensi== |
Revision as of 17:21, 10 October 2018
Sumber: https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md
Membuat RaspberryPi 3 menjadi stand alone access point WiFi.
Instalasi
Instalasi
sudo su apt-get update apt-get upgrade apt-get install dnsmasq hostapd
Karena belum siap, di stop / off dulu
sudo systemctl stop dnsmasq sudo systemctl stop hostapd
Reboot untuk meng-update kernel
sudo reboot
IP Statik
Edit
sudo vi /etc/dhcpcd.conf
Tambahkan di akhir file
interface wlan0 static ip_address=192.168.4.1/24 nohook wpa_supplicant
Restart
sudo service dhcpcd restart
Konfigurasi DHCP Server (dnsmasq)
Lakukan
sudo su mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig vi /etc/dnsmasq.conf
Tambahkan
interface=wlan0 # Use the require wireless interface - usually wlan0 dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
interface=eth0 # Use the require wireless interface - usually wlan0 dhcp-range=192.168.1.100,192.168.1.200,255.255.255.0,24h
Konfigurasi Access Point (hostap)
Edit
sudo su vi /etc/hostapd/hostapd.conf
Asumsi
Nama WiFi SekolahWiFi Password 123456789 Pilihan Band hw_mode=g s/d hw_mode=a, pilihan-nya
a = IEEE 802.11a (5 GHz) b = IEEE 802.11b (2.4 GHz) g = IEEE 802.11g (2.4 GHz) ad = IEEE 802.11ad (60 GHz).
Contoh isi /etc/hostapd/hostapd.conf
interface=wlan0 driver=nl80211 ssid=SekolahWiFi hw_mode=g channel=7 wmm_enabled=0 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=123456789 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP
Edit
sudo vi /etc/default/hostapd
Pastikan
DAEMON_CONF="/etc/hostapd/hostapd.conf"
Restart
sudo systemctl start hostapd sudo systemctl start dnsmasq
Reboot
sudo reboot
Referensi