Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xosiris

macrumors newbie
Original poster
Dec 6, 2013
1
0
Hi there,

I would like to change my MAC address. However whatever tutorial or manual I follow the ether net address will only change under ifconfig, but when I try to connect to any network with a changed MAC address I will get a connection timeout.

I use the following commands to change the MAC address of my WiFi connection on an old macbook pro with lion:
(See also https://github.com/feross/SpoofMAC)

Preparing the interface
Code:
sudo networksetup -setairportpower en1 on
sudo airport -z

Changing the MAC
Code:
sudo ifconfig en1 ether xx:xx:xx:xx:xx:xx
sudo networksetup -detectnewhardware

Checking the change
Code:
ifconfig en1 | grep ether
sudo networksetup -detectnewhardware
 
I'm using
Code:
sudo airport -z
sudo ifconfig en1 ether NewMAC
And then try connection to WiFi
repeat until it starts working :) (usually works immediately, though) ;)
Optional check:
Code:
ifconfig en1 | grep ether
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.