Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save luzdelsol668/1c57d631a9224ce7f4760575fc9b89f4 to your computer and use it in GitHub Desktop.

Select an option

Save luzdelsol668/1c57d631a9224ce7f4760575fc9b89f4 to your computer and use it in GitHub Desktop.
Change MAC address macOS 12 Monterey

Change MAC address in macOS Monterey

I was unable to change the MAC address of the Wi-FI device on a MacBook Air (M1 2020) running macOS Monterey due to the following error: ifconfig: ioctl (SIOCAIFADDR): Can't assign requested addres.

By running the commands in following sequence I was able to change it successfully:

  1. Turn WiFi device off
  2. Turn the WiFi device on again: networksetup -setairportpower en0 on
  3. Change the MAC: ifconfig en0 ether <mac-address-here>
  4. Run: networksetup -detectnewhardware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment