How can I randomize my MAC address on boot on both iOS and Mac OS X?

I would like my MAC addresses on my Mac OS X (iMac) and iOS devices (iPhone, iPad) to be randomized on boot. I have no idea how to generate the random MAC, nor to insert it into the boot process. Any help would be greatly appreciated!


Solution 1:

You can't. The Ethernet and AirPort (Wi-Fi) drivers in Mac OS X don't reliably support changing your MAC address. I suspect the same is true of iOS, although I haven't tried it on a jailbroken iOS device.

Was this about privacy, or something else?

Solution 2:

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
sudo ifconfig en1 ether 00:11:22:33:44:55