11

Any help will be appreciated.

  • I would think this question is better served on the Unix/Linux or the Ask Ubuntu Stack exchange, I guess there is some grey area though – John Dream Aug 27 '16 at 4:58
20

Open a terminal and run ifconfig:

$ ifconfig | grep HWaddr
| improve this answer | |
  • by the way, do you know what the "if" of "ifconfig" stands for? – Tom Brito Jul 16 '10 at 15:58
  • 4
    ifconfig is short for "Interface Configurator" – Brian Kintz Jul 16 '10 at 16:10
17

Use ip command instead of the outdated ifconfig

Command :

$ ip addr show

link/ether field of the output is the MAC address (Both for Wi-fi and ethernet connections, MAC address is represented by link/ether). Mostly this will be present in the second line.

Example :

$ ip addr show
1: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether a0:54:9f:53:b2:6e brd ff:ff:ff:ff:ff:ff

In my case a0:54:9f:53:b2:6e is the MAC address.

| improve this answer | |
  • By the way, just ip a works too, but the longer syntax is more clear. – Nagev Oct 22 '18 at 10:05
3

Try ifconfig, and look at the "HWaddr".

| improve this answer | |
2

okay, this is a very easy solution. 1/ Open a terminal 2/ ifconfig A list of network capable devices will be displayed. If you are using wireless, it usually is called wlan0, but can also be named pan0 wifi0 etc. A physical conection is most likely eth0. on the first line you will see your mac address. here is a sample of what you might see eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00

that's it.

You can spoof your mac address too with macchanger (sudo aptitude install macchanger) just type man macchanger to learn more

| improve this answer | |
2

You can also right-click on the GNOME Network Manager. There you choose connection information and the following window shows you the hardware address. See also NetworkManager at Ubuntus Wiki.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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