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

Simo1122

macrumors member
Original poster
Jan 28, 2009
60
0
Hey all,
I need to change my en1 (Wireless) MAC address on a new 15" unibody MBP. I can't find any solutions on the internet.

Is there a way to permanently change it? If not is it possible to have a script of some sort do it on boot?
 
Hi,
I don't know what alphaod meant with "mask" but I think you can change it like this:

Code:
sudo ifconfig en0 ether aa:bb:cc:dd:ee:ff

This will not change it permanently.

Tex
 
Didn't work.

I changed your thing to en1 (wireless) and then after i entered

ifconfig en1 | grep ether

and it says it has not changed.
 
Didn't work.

MBP:~ Luke$ sudo ifconfig en1 down
Password:
MBP:~ Luke$ sudo ifconfig en1 ether 00:19:e3:04:f7:6c
ifconfig: ioctl (SIOCAIFADDR): Device power is off
MBP:~ Luke$ sudo ifconfig en1 up

and the up command didn't turn it back on.
 
Didn't work :(

Does ifconfig en1 | grep ether get the software MAC address or the hardware MAC address?
 
Well it really doesn't seem to work. It works ok for the en0 interface but not for the Airport (en1).

After some googling I found this:

1. Turn off airport. Use airport icon on menu bar (top of your screen). DO NOT use ifconfig en1 down, it wouldn’t work!!!
2. Fireup Console and type “sudo -s” (without qoutes).
3. Type “ifconfig en1 lladdr 00:11:22:33:44:55″ (without quotes) and hit return.
4. Turnon airport using airport icon.

Can you try that ? I'm still not at home and have access to my MBP only via ssh.

Tex
 
Well it really doesn't seem to work. It works ok for the en0 interface but not for the Airport (en1).

After some googling I found this:


Tex

It doesnt work either. It looks like the Airport must be ON but not connected. So try this

Code:
1- disconnect airport
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -z

2- then use again this command
ifconfig en1 lladdr 00:23:12:xx:xx:xx
For me it seems to work.


Tex
 
Legend! It seems to have worked!

Now How do I get it to do this automatically on startup?
 
Well it worked the first time and now it doesnt

typing in this:

sudo -s ifconfig en1 lladdr <mac address>

gives me:

/sbin/ifconfig: /sbin/ifconfig: cannot execute binary file
 
Actually, I got it!

the -s wasn't meant to be there.

It should be:

Airport ON but not connected to any network.

Enter:

sudo ifconfig en1 lladdr (mac address here)

then to make sure it worked, enter:

ifconfig en1 | grep ether

And it should show the new MAC address.

Now should I make a new thread asking if somebody can write a script? :)
 
what would be the benefit of spoofing your mac address, is it related to security? I dont really know the technical purpose of a mac address is other then a sort of hardware id.
 
I have a new computer and the school that I am at has a $150 for any new computer put onto their network. I'm changing my MAC address to be the same as my old one. No $150 fee for me!

<Stupid school>
 
Now should I make a new thread asking if somebody can write a script? :)
Do you mean like this:

Code:
# /bin/bash

ifconfig en1 lladdr (mac address here)

;)

Seriously though, I think you could save the above as a file called something like "spfmac.sh", input the mac address & then run this command in the same folder as the file: "chmod 755 spfmac.sh && sudo cp spfmac.sh /Library/StartupItems/ && sudo chown root:wheel /Library/StartupItems/spfmac.sh"

Perhaps someone is willing to be the guinea pig?
 
Do you mean like this:

Code:
# /bin/bash

ifconfig en1 lladdr (mac address here)

;)

Seriously though, I think you could save the above as a file called something like "spfmac.sh", input the mac address & then run this command in the same folder as the file: "chmod 755 spfmac.sh && sudo cp spfmac.sh /Library/StartupItems/ && sudo chown root:wheel /Library/StartupItems/spfmac.sh"

Perhaps someone is willing to be the guinea pig?
If you read this thread correctly, you'll see that this command does not work on Airport.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.