Difference between revisions of "Iwconfig: akses dengan wpa"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant ==Lakukan rfkill== apt install rfkill rfkill list pastikan tidak ada interface wif...")
 
Line 36: Line 36:
 
==Connect==
 
==Connect==
  
  sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlp3s0
+
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
 +
 
 +
 
 +
 
  
  

Revision as of 10:20, 2 January 2021

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


Lakukan rfkill

apt 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