Tuesday, July 31, 2012

How to Change MAC address on Mac OSX

If you want to change the MAC address of your Mac do this in Terminal:

1. Check the current MAC address of your Mac:
ifconfig en0 |grep ether

2. Generate new random MAC address:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'


3. Change MAC address of your Mac:
sudo ifconfig en0 ether d4:33:a3:ed:f2:12 (it is just example)


4. Check the changes:
ifconfig en0 |grep ether