Saturday, August 24, 2013

Connect wireless with iw command

To connect to wireless, we can use command iw to do so:

example:

1- connect to SSID Y5Net
iw dev wlan0 connect -w Y5Net

2- if there are many Y5Net ssids and want to connect to specify one, we need to specify bssid
 iw dev wlan0 connect -w Y5Net DC:9F:DB:0A:4E:59

3- do disconnect
iw dev wlan0 disconnect


note we can use iw dev wlan0 scan to scan all available wifi network, or use wavemon for simple scan.

No comments:

Post a Comment