WIFI Command Line Linux

1 – Encontre dispositivos wifi conectados ao computador

iw dev

2 – Check o status dos dispositivos

ip link show wlan0

3 – Ative o dispositivo wifi

ip link set wlan0 up

4 – Check se o status da interface wlan0 foi ativado

ip link show wlan0

5 – Check o status da conexao wifi

iw wlan0 link

6 – Scaneie as redes wifi disponiveis

iw wlan0 scan | grep SSID

7 – Gere um arquivo de configuracao para rede wpa/wpa2

wpa_passphrase myWifiLan passwdHere > mywifilan.conf

8 – Conecte a rede wifi

wpa_supplicant -B -D wext -i wlan0 -c mywifilan.conf

9 – Check o status da conexao wifi

iw wlan0 link

10 – Pegar IP por DHCP

dhclient wlan0
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s