Difference between revisions of "Iwconfig: akses dengan wpa"

From OnnoWiki
Jump to navigation Jump to search
Line 4: Line 4:
 
==Lakukan rfkill==
 
==Lakukan rfkill==
  
  apt install rfkill
+
  apt -y install rfkill
 
  rfkill list
 
  rfkill list
  

Revision as of 10:34, 2 January 2021

Sumber: https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant


Lakukan rfkill

apt -y install rfkill
rfkill list

pastikan tidak ada interface wifi yang di block

# sudo systemctl stop NetworkManager

Cek WiFi

iwconfig

Jika di perlukan untuk up

sudo ifconfig wlp2s0 up

Scan

sudo iwlist wlp2s0 scan | grep ESSID
sudo iwlist wlp2s0 scan


Set wpa_supplicant

sudo apt install wpasupplicant
wpa_passphrase your-ESSID your-passphrase | sudo tee /etc/wpa_supplicant.conf
wpa_passphrase diamankan 1234567890 | sudo tee /etc/wpa_supplicant.conf

Connect

Ini akan connect, tapi tidak dapat IP address

sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlp2s0


Ini akan connect, dan akan request IP address

sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp2s0
sudo dhclient wlp2s0



Referensi