Changing MAC Address

Discussion in 'OS X Mountain Lion (10.8)' started by ctbuzzy, Aug 23, 2013.

  1. macrumors newbie

    Joined:
    Aug 16, 2013
    #1
    Looked around for this, couldn't find anything on point.

    Anyway, I'm trying to change the WiFi MAC address on my MacBook Pro, Mountain Lion. I figured out the terminal commands & got it changed, but every time I do it it automatically kills my Internet connection. I stay connected to the router, but I lose Internet. I have to reboot to regain my connection, & that of course resets the MAC address.

    Is there a step I'm missing?

    Before anyone asks - because they always do - no, you won't be helping me do anything nefarious. I was able to spoof the MAC address on my PC & I want to be able to do the same on my Mac.

    Thanks!
     
  2. macrumors 6502a

    Joined:
    Nov 9, 2009
    Location:
    Long Island
    #2
    After changing the MAC address, have you tried renewing the DHCP lease?
     
  3. thread starter macrumors newbie

    Joined:
    Aug 16, 2013
    #3
    Thanks, but I can't complete that task once I've changed the MAC address. The WiFi connection gets stuck on "No IP Address" or "Self-Assigned IP Address" with a yellow light & I get no connection. I can renew the lease just fine if I don't change the MAC address.
     
  4. Kornelis, Aug 24, 2013
    Last edited: Aug 24, 2013

    macrumors member

    Kornelis

    Joined:
    Dec 4, 2010
    Location:
    Amsterdam, NL
    #4
    You first need to disable, but not switch off your Wi-Fi adapter:

    sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z

    After this change the MAC address and than reactivate the Wi-FI interface again:

    sudo /usr/sbin/networksetup -setairportpower en1 on

    I guess your Wi-FI interface is en1, I'm not sure for a Mac Pro. I have an Air, so for me it is en0
     
  5. macrumors 6502

    Joined:
    Jul 15, 2012
    Location:
    Czech Republic
    #5
    I use this setup:
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z linked as airport -z

    1. sudo airport -z
    2. sudo ifconfig en1 ether NEW_MAC_ADRESS
    3. done, just reconnect
     
  6. thread starter macrumors newbie

    Joined:
    Aug 16, 2013
    #6
    Thanks! Kornelis, it worked like a charm.
     
  7. macrumors newbie

    Joined:
    Sep 28, 2010
    #7
    I did this procedure and then checked it using the command "ifconfig en0 |grep ether" which show the new mac address i chose. So it seems all good but i went to System preferences > Network > Advanced.. and it's still show the real mac address!! is that normal?
     
  8. macrumors newbie

    Joined:
    Sep 4, 2014
    #8
    Hey there, I know this is an old thread but I'm having this same problem now on mavericks. The network down/up isn't working I'm still getting self assigned ip and the like. And after I change the MAC back to the previous one, it still won't connect until I do a restart. Any ideas?
     

Share This Page