Skip to content

Instantly share code, notes, and snippets.

@thesauri
Last active June 25, 2025 22:14
Show Gist options
  • Save thesauri/022a307234eb3296fae6487cacc1fc1f to your computer and use it in GitHub Desktop.
Save thesauri/022a307234eb3296fae6487cacc1fc1f to your computer and use it in GitHub Desktop.
Change MAC address macOS 12 Monterey

Change MAC address in macOS Sequoia

I was unable to change the MAC address of the Wi-FI device on a MacBook Air (M1 2020) running macOS Sequoia 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
@foxhoundsk
Copy link

this gives me the same permission denied error as stated earlier in the thread...

@limitay Considering you didn't use quote, are you trying my approach? If yes, do you have the WiFI switch disabled? The switch shouldn't be disabled, simply disassociate the AP you were connected to.

I have tried everything. All the commands. Trying to restart the mac to close anything that might be affecting it (little snitch). I tried with macchanger, but it does a infinite loop of errors. Screenshot 2025-06-25 at 9 50 29 pm

@DHUB7376736 Have you disaccosiated the AP before issuing the "MAC addr changing" command?

Specifically, see my previous comment.

@DHUB7376736
Copy link

this gives me the same permission denied error as stated earlier in the thread...

@limitay Considering you didn't use quote, are you trying my approach? If yes, do you have the WiFI switch disabled? The switch shouldn't be disabled, simply disassociate the AP you were connected to.

I have tried everything. All the commands. Trying to restart the mac to close anything that might be affecting it (little snitch). I tried with macchanger, but it does a infinite loop of errors. Screenshot 2025-06-25 at 9 50 29 pm

@DHUB7376736 Have you disaccosiated the AP before issuing the "MAC addr changing" command?

Specifically, see my previous comment.

If by AP you are referring to wifi, then yes. I tried: networksetup -setairportpower en0 off I have also done it manually. Maybe it just isn’t functioning at all for Sequoia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment