Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to get the BSSID for a known SSID, how can I do that? Thanks :-)

share|improve this question
    

4 Answers 4

If I'm not mistaken, it should be the Address shown when issuing

sudo iwlist scanning

E.g.:

wlan0     Scan completed :
          Cell 01 - Address: 00:11:22:33:44:55
                    Channel:5
                    Frequency:2.432 GHz (Channel 5)
                    Quality=70/70  Signal level=-33 dBm  
                    Encryption key:on
                    ESSID:"the_known_ssid"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    ...
share|improve this answer
1  
small addition to htorque: sudo iwlist wlan0 scanning|grep Address will show only the adresses. My post will take more time so htorques' is better ;-) –  Rinzwind May 4 '11 at 17:33

aircrack-ng can do this.

sudo airmon-ng start eth1 6 to use eth1 to monitor channel 6 (the channel is optional) and then you can use sudo airodump-ng eth1 to make it show you the BSSID.

share|improve this answer

You could also install wifi-radar which will give you a graphical list of all wireless networks your NIC is seeing. Use sudo apt-get install wifi-radar to install it.

share|improve this answer

nm-tool | grep Wireless-Name where you gotta replace "Wireless-Name" for the wireless you are trying to connect to will give you all the info you need

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.