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:
- Turn WiFi device off
- Turn the WiFi device on again:
networksetup -setairportpower en0 on - Change the MAC:
ifconfig en0 ether <mac-address-here> - Run:
networksetup -detectnewhardware
Good find.
What about a virtual interface in addition to the parent network interface? In BSD those appear on the network without the MAC Address of the parent interface.
feth0may be an option. My quick test did not route but I am invariably missing something simple.feth0 <- bridge10 -> en5