Change MAC address in Mac Sonoma

Sometimes you want to change – aka spoof your MAC address on your Mac, for example for testing.

I received the following error at first:

ifconfig: ioctl (SIOCAIFADDR): Can't assign requested addres.

I had to do the following (in this sequence):

  1. Turn WiFi off
  2. Run the following commands (the first one tuns wifi back on again)
    networksetup -setairportpower en0 on
    ifconfig en0 ether <new-mac-here>
    networksetup -detectnewhardware

Done.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *