MAC Map
Notes from 2009–10

Snow Leopard unleashed: finding and changing a MAC address in Mac OS X 10.6

Snow Leopard keeps the old Unix tools. Here is how to read an interface's address, set a temporary one for testing, and get the original back.

Published

Snow Leopard is mostly a cleanup release, and the networking tools underneath are the same BSD utilities as before. That makes reading, and temporarily changing, a MAC address a short job in Terminal.

Read the current address

$ ifconfig en1 | grep ether
	ether 00:00:5e:00:53:21

en0 is usually the Ethernet port and en1 the AirPort card. networksetup -listallhardwareports shows which is which.

Set a temporary address

The change needs administrator rights, and for AirPort the card must not be associated with a network first:

$ sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
$ sudo ifconfig en1 ether 02:00:5e:10:00:01

Then join the network again from the AirPort menu. On the Ethernet port the second command alone is enough.

Pick a locally administered value

Use an address whose first byte ends in binary 10: a second hex digit of 2, 6, A or E, such as 02:…. That marks it as locally administered, so it can never clash with a real manufacturer address, and anyone reading a log can see it was set by hand. The checker shows this bit for any address you paste.

Getting the original back

The new address only lives in memory. Restart, or set the burned-in value again with the same command, and the factory address returns. Nothing on the card itself is rewritten.

A word on why

The honest reasons are testing a DHCP reservation, replacing a broken machine without touching a filter list, or checking how your own network reacts. Changing an address to slip past someone else’s access control is a different matter, and on most networks against the rules.

Check an address in the MAC Map checker