feross / SpoofMAC

:briefcase: Change your MAC address for debugging
https://feross.org/spoofmac/
3.03k stars 269 forks source link

en0 and en1 are not always wired and wireless #2

Closed bunnyhero closed 11 years ago

bunnyhero commented 11 years ago

On my MacBook Air (2012), en0 is Wi-Fi and en1 at the moment is my Bluetooth connection (tethered). Executing networksetup -setairportpower en1 on (line 37 of SpoofMAC.py) returns the error: "en1 is not a Wi-Fi interface."

feross commented 11 years ago

Thanks for reporting this. I just got a retina MBP and I noticed the same thing. I'll add a note to the README about this and maybe at some point fix the script to figure this out for you automatically.