Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

How can I find out what the MAC address (BSSID) of the wireless access point I'm connected to is?

share|improve this question

marked as duplicate by Seth Apr 27 '15 at 3:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 10 down vote accepted

Any of these 3 works:

  • arping Change the IP adress to whatever you use. The MAC address is in the reply between brackets.

  • iwconfig | grep "Access Point". Access point will be colored and behind it the MAC address.

  • iwlist wlan0 scan | grep Address same as previous command (color etc).

share|improve this answer
iwlist wlan0 scan|grep worked, thank you a lot :) – gro Nov 27 '12 at 13:17

If you are using a recent desktop version of Ubuntu (with interfaces managed by network-manager) then nmcli is a more configurable option than nm-tool. For example, to list some common information including SSID, access point MAC (BSSID), channel frequency, signal strength etc. for all the access points seen by the active wifi device you can use

nmcli dev wifi list 

You can limit the output to specific fields e.g. to see just the access point MAC addresses (BSSIDs) and connection status, use

nmcli -f BSSID,ACTIVE dev wifi list

To return just the MAC address to which the wifi device is currently connected (i.e. the access point whose ACTIVE field is 'yes'), you can use

nmcli -f BSSID,ACTIVE dev wifi list | awk '$2 ~ /yes/ {print $1}'
share|improve this answer

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