How To Obtain Your MAC Address on Your
Unix/Linux/OSX Computer.
These step-by-step, illustrated instructions will help you obtain your MAC address from your computer. Should you have trouble, please contact our help desk.

The easiest way to find your ethernet hardware address in a *nix like operating system is to use the ifconfig command. Open up a terminal or shell window and run ifconfig. Example outputs are below.

You may need to specify the entire path to ifconfig to get the information you are looking for. If you can not find ifconfig try "locate ifconfig".In the first example below we are looking for HWaddr. The other two examples have the hardware (MAC) address next to ether.

Linux

bash% /sbin/ifconfig -a

eth0:

Link encap:Ethernet HWaddr 00:A0:C9:D5:A5:48
inet addr:10.16.1.7 Bcast:10.16.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6567474 errors:0 dropped:0 overruns:0 frame:0
TX packets:5819193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4102207348 (3.8 GiB) TX bytes:838733328 (799.8 MiB)
Interrupt:10

lo:

Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:403163 errors:0 dropped:0 overruns:0 frame:0
TX packets:403163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20166974 (19.2 MiB) TX bytes:20166974 (19.2 MiB)

top


Mac OSX

bash% ifconfig

lo0:

flags=8049<UP,LOOPBACK,RUNNING,MULTICAST>
mtu 16384 inet 127.0.0.1 netmask 0xff000000

en0:

flags=8863<UP,BROADCAST,b6,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.16.1.27 netmask 0xffff0000
broadcast 10.16.255.255
ether 00:50:e4:90:eb:26
media: autoselect (10baseT/UTP <half-duplex>)
status: active
supported media: none
autoselect 10baseT/UTP <half-duplex>
10baseT/UTP <full-duplex>
100baseTX <half-duplex>
100baseTX <full-duplex>

top


UNIX

bash% ifconfig

exp0:

flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
link type ether 0:a0:c9:9b:e:a9 mtu 1500 speed 100Mbps
media 100baseTX
full_duplex status active
inet 192.168.1.23
netmask 255.255.255.0
broadcast 192.168.1.255
inet6 fe80::2a0:c9ff:fe9b:ea9%exp0 prefixlen 64 scopeid 0x0001

lo0:

flags=8009<UP,LOOPBACK,MULTICAST>
link type loop mtu 4352
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x0002
inet 127.0.0.1
netmask 255.0.0.0

top

DCANet provides this page as a service to its clients. DCANet offers no guarantees as to the accuracy of the information herein and assumes no responsibility for the consequences of its use. DCANet is not responsible for the content of the links.