Jump to content

Recommended Posts

Posted

<div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2012/02/MAC-address.jpg" alt="MAC address" title="MAC-address" width="609" height="338" class="aligncenter size-full wp-image-27817" /></p>

<p>A MAC address is a unique identifier that is assigned to each physical network interface on a computer. Different than a computers <a href="http://osxdaily.com/2010/11/21/find-ip-address-mac/">IP address</a>, MAC addresses are frequently used for network access control and to monitor network connectivity, and they can be <a href="http://osxdaily.com/2008/01/17/how-to-spoof-your-mac-address-in-mac-os-x/">spoofed</a> for virtualization needs or to circumvent some network limitations. If you need to access yours, here’s how to find one from the friendly GUI and the command line.</p>

<h2 style="font-size:1.2em;">Locate a MAC Address in Mac OS X</h2>

<p>To quickly find a MAC address:</p>

<ul>

<li>Open System Preferences from the  Apple menu</li>

<li>Click on “Network”</li>

<li>Select your currently active network connection from the left menu (Wi-Fi, Ethernet, etc) and then click on “Advanced” in the lower right corner</li>

<li>Look at the bottom of the window for “Wi-Fi Address”, the hexadecimal characters next to this are the machines MAC address</li>

</ul>

<p><img src="http://osxdaily.com/wp-content/uploads/2012/02/mac-address-mac.jpg" alt="Find MAC address Mac OS X" title="mac-address-mac" width="620" height="529" class="aligncenter size-full wp-image-27816" /></p>

<p>The address is always in the form aa:bb:cc:dd:ee:ff, looking something like “ce:9e:8d:02:1d:e9″ or a variation of.</p>

<p>Note that the wireless MAC address will be labeled as “Wi-Fi Address” in OS X 10.7 Lion and later <a href="http://osxdaily.com/2010/08/05/find-iphone-mac-address/">as well as iPhone and iOS</a>, whereas it’s called “Airport Address” in Mac OS X 10.6 Snow Leopard and before.</p>

<h2 style="font-size:1.2em;">List All Network Hardware MAC Addresses in Mac OS X</h2>

<p>To quickly list all MAC addresses of network hardware on a Mac, even if they are currently inactive, launch the Terminal and type the following command:</p>

<p><code>networksetup -listallhardwareports</code></p>

<p>This may return something like this, look for the string following “Ethernet Address” to find the MAC address per interface:</p>

<p><code>Hardware Port: Bluetooth DUN

Device: Bluetooth-Modem

Ethernet Address: db:26:cd:41:c3:79</p>

<p>Hardware Port: Ethernet

Device: en0

Ethernet Address: 21:d3:91:bb:11:bd</p>

<p>Hardware Port: FireWire

Device: fw0

Ethernet Address: c6:18:ed:fa:ff:15:db:51</p>

<p>Hardware Port: Wi-Fi

Device: en1

Ethernet Address: f2:8b:fc:ae:bb:f5</code></p>

<p>Notice that even a wi-fi cards MAC address will be referred to as “Ethernet address” using the networksetup command. You can also retrieve individual IP addresses and MAC addresses together with the ifconfig command, although the output isn’t nearly as user friendly.</p>

<p>If your intention is to spoof an address, <a href="http://osxdaily.com/2010/11/10/random-mac-address-generator/">generating a random MAC address</a> is usually the best bet to avoid any network conflicts.</p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/iXvN8IugaSYalV3_pTGTyFcQink/0/da"><img src="http://feedads.g.doubleclick.net/~a/iXvN8IugaSYalV3_pTGTyFcQink/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/iXvN8IugaSYalV3_pTGTyFcQink/1/da"><img src="http://feedads.g.doubleclick.net/~a/iXvN8IugaSYalV3_pTGTyFcQink/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=RJOF6oWYCio:0jHd2I_8N0k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=RJOF6oWYCio:0jHd2I_8N0k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=RJOF6oWYCio:0jHd2I_8N0k:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=RJOF6oWYCio:0jHd2I_8N0k:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=RJOF6oWYCio:0jHd2I_8N0k:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=RJOF6oWYCio:0jHd2I_8N0k:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=RJOF6oWYCio:0jHd2I_8N0k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a>

</div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/RJOF6oWYCio" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


×
×
  • Create New...