Unable to change MAC address

Discussion in 'Mac OS X Lion (10.7)' started by xosiris, Dec 6, 2013.

  1. xosiris macrumors newbie

    Joined:
    Dec 6, 2013
    #1
    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
    
     
  2. meme1255, Dec 8, 2013
    Last edited: Dec 8, 2013

    meme1255 macrumors 6502

    Joined:
    Jul 15, 2012
    Location:
    Czech Republic
    #2
    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
     

Share This Page