ifconfig en0 ethernetworksetup -setairportpower en0 onsudo ifconfig en0 ether <new-mac-address>networksetup -detectnewhardwareEach command should execute without throwing an error. Your newly set MAC address will persist until your machine is shutdown. Upon rebotting, your machine it will reset back to its original assigned MAC address.
ip link showsudo ip link set dev <device-name> downsudo ip link set dev <device-name> address <new-mac-address>sudo ip link set dev <device-name> upThis method uses the ip command as the ifconfig command is being depricated in favor of this tool.