I need to change the MAC Address for Airport on MacBook

I have a specific need to change my son's Airport MAC address as his school requires the use of USB network cards that aren't compatible with MACs. These cards are needed because the school's router uses MAC address filtering.

Before we upgraded his Mac to Snow Leopard, we were able to change the MAC address to the MAC address of the useless dongal the school supplied. We basically created an AppleScript program that ran the "sudo ifconfig en1 ether xx:xx:xx:xx:xx:xx" and all was good.

This command no longer works for changing the MAC address. We tried it as root user as well and by typing it into the terminal window as root. After running the command, we can run "ifconfig en1" and it does display the new mac address but when we turn the airport on and try to connect, it just hangs and won't connect.

Our other non-Snow Leopard still works fine after running the commands so I'm guessing Apple disabled this functionality. It's hardly a security issue by being able to change your mac addres.

Is there a new way to accomplish this? I've searched everywhere.

Thanks!

Several Macs

Posted on Sep 15, 2009 5:51 PM

Reply
33 replies

Sep 18, 2009 8:34 AM in response to Gamesta

Would an easier solution be to provide the school's IT admin with your mac address and have it added? If they can add a block of mac addresses for the usb dongles, they can add more for machines that cannot use the dongle.

Also: "It's hardly a security issue by being able to change your mac address."

While it may not be a security issue for your machine, it is a security for the school network who is using mac address filtering as hopefully only one part of their wireless security.

That being said, have you read this?

http://osxdaily.com/2008/01/17/how-to-spoof-your-mac-address-in-mac-os-x/

Sep 18, 2009 4:58 PM in response to micp

Thanks for the response. The osxdaily article is basically what we have been doing for 2 years.

I put in a request to the school's network guys to add the MAC address to their list. We'll see.

I'm still disappointed that the existing functionality is not working. The command is still there but just renders the Airport useless. I'm guessing it is a bug or else they would have disabled that switch in the command all together.

Sep 20, 2009 8:39 PM in response to micp

1. Open terminal
2 Type sudo ifconfig en0 lladdr 00:00:00:00:00:00 with all the 00 being the mac address you need
3. Confirm change by typing ifconfig en0 | grep ether

en0 = airport
en1 = wired ethernet card but does not seem to work with wired ethernet

Also see:

http://osxdaily.com/2008/01/17/how-to-spoof-your-mac-address-in-mac-os-x/

scroll down to the bottom and read the update.

Sep 21, 2009 2:31 PM in response to Bryan Patrick

Status has not changed. I did try the updated portion of the osxdaily article and it didn't work. I tried with the "ether" option and the "lladdr" one as well. It "looks" like it worked when you look after you run the update commands but it just won't connect to any network.

I think Apple dropped the ball and didn't test those commands before the SL rollout. You would think that if a command is executable, it should work. I just think it's a bug and Apple is like *** we F-ed that one up.

If I do find a solution, I will make sure to make a post here an a NEW post with the instructions that worked for me.

So far there are no testimonials for a successful MAC address change for Airport on a SL machine.

Sep 21, 2009 6:18 PM in response to Gamesta

Hi there,

One my unibody MBP, en1 is wireless, so you are correct. A little bit of history.. I can't recall exactly which version update allowed this, but previously, ifconfig could not change the airport MAC address on powerbooks. Perhaps it was 10.4 or 10.5 that allowed this.

I don't have a wireless network handy right now, but I will give this a try later on and see if I can change my wireless MAC address using snowleopard on this MBP.

And you should get vocal with the university. After all you are paying $$$$ in tuition. If IT doesn't help, move up the food chain. Point out how macs are popular on college campuses, etc.

Sep 22, 2009 6:23 AM in response to Dogcow-Moof

I saw some posts regarding the disabling of MAC address changing for the airport but have not seen any official post from Apple nor anything in the version notes during any of the updates.

If Apple had disabled this functionality for Airports, they would have said something or at least have an error code. I think it is just a bug due to lack of testing pre rollout.

Keep trying... If any Apple techies are out there that know what the problem is, please let us know.

Sep 22, 2009 6:10 PM in response to johnakeating

It does work for me on a pci-slot unibody 15" MBP running 10.6.1 with this command

sudo ifconfig en1 ether 00:15:8b:34:9d:23

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::215:8bff:fe34:9d22%en1 prefixlen 64 scopeid 0x5
inet 10.0.1.8 netmask 0xffffff00 broadcast 10.0.1.255
ether 00:15:8b:34:9d:22
media: autoselect status: active
supported media: autoselect

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::215:8bff:fe34:9d23%en1 prefixlen 64 scopeid 0x5
inet 10.0.1.9 netmask 0xffffff00 broadcast 10.0.1.255
ether 00:15:8b:34:9d:23
media: autoselect status: active
supported media: autoselect

The first MAC address is also spoofed.

Sep 23, 2009 1:25 PM in response to Steve_O

Wow Stev_O. So after you changed the mac address were you able to successfully connect to a wireless network and use the wireless?

Like, did you unplug the wired connection and connect and use the wireless connection for something?

If you did connect successfully, what model identifier (from system profiler) is your mac and what firmware version is your airport?

Mine is a MacBookPro 3,1 and my wireless is a Atheros 5416:2.0.19.4.

Maybe it is related to hardware.

Sep 23, 2009 5:46 PM in response to Gamesta

Yes I was able to connect to a wireless network. I had no ethernet cable plugged in at all. I used the wireless normally with a spoofed MAC address. When you try to change your MAC address, confirm that you are 1) not connected to a wireless network but 2) have the airport turned on. Are you sure that the MAC address you specified was properly formatted (e.g., http://en.wikipedia.org/wiki/MAC_address )?

From what others have posted, it sounds as if it could perhaps be hardware related, but since I don't know much about that, I'll reserve judgment.

Have you opened up console.app in the utilities folder to see what is recorded in the system log? Also look under "DATABASE SEARCHES" All Messages.

My model number is MacBookPro 5,1

I'm not sure where you are getting the card info in system profiler, though. Under "network":
Card Type: AirPort Extreme (0x14E4, 0x8D)
Firmware Version: Broadcom BCM43xx 1.0 (5.10.91.19)

from "ethernet cards", the chipset appears to be pci14e4,432B

Here are some of the relevant log messages (viewable from console) showing me using sudo to elevate my privilege to root and specifying a new MAC address for en1, followed by connecting to a wireless network. (I hid/redacted the MAC address of the router to which I connected)



9/24/09 9:07:28 AM sudo[641] steveo : TTY=ttys000 ; PWD=/Users/steveo ; USER=root ; COMMAND=/sbin/ifconfig en1 ether 00:15:8b:34:9d:23
9/24/09 9:08:13 AM kernel Auth result for: 00:00:00:00:00:00 MAC AUTH succeeded
9/24/09 9:08:13 AM kernel AirPort: Link Up on en1
9/24/09 9:08:13 AM kernel AirPort: RSN handshake complete on en1
9/24/09 9:08:13 AM configd[13] network configuration changed.


Here is the relevant terminal stuff.


steveos-macbook-pro:~ steveo$ sudo ifconfig en1 ether 00:15:8b:34:9d:23
Password:
steveos-macbook-pro:~ steveo$ ifconfig
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::215:8bff:fe34:9d23%en1 prefixlen 64 scopeid 0x5
inet 10.0.1.9 netmask 0xffffff00 broadcast 10.0.1.255
ether 00:15:8b:34:9d:23

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

I need to change the MAC Address for Airport on MacBook

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.