Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Hardware Hacking > Changing ethernet address?

Changing ethernet address?
Thread Tools
TomHMeredith
Forum Regular
Join Date: Nov 2000
Location: Elephant & Castle. UK.
Status: Offline
Reply With Quote
Feb 8, 2003, 11:13 AM
 
Hey

I have an iBook, and am wondering if there is any (easy preferably!) way to change the ethernet address of the network port?

All of the network ports at uni are locked to a specific address, meaning I can't access the network or the internet, if I could set my ethernet address to the relevant settings, then I shouldn't have a problem should I?

Any help appreciated.

Tom.
What are you looking for? A signature?
     
escher
Grizzled Veteran
Join Date: Mar 2000
Status: Offline
Reply With Quote
Feb 8, 2003, 12:58 PM
 
I don't think you can change the hardware Ethernet address (also referred to as MAC address) of a system. Note, however, that a computer may have two MAC addresses for two different interfaces. E.g. my iBook has an Ethernet MAC address and a different AirPort MAC address.

Am I correct in understanding that your school restricts network access to certain hardware MAC addresses? If so, the logical thing to do would be to ask the IT people at uni to add your MAC address to the list of permitted users.

Escher
"The only laptop computer that's useful is the one you have with you."
Until we get a 3 lbs sub-PowerBook, the 12-inch PowerBook will do.
     
TomHMeredith  (op)
Forum Regular
Join Date: Nov 2000
Location: Elephant & Castle. UK.
Status: Offline
Reply With Quote
Feb 8, 2003, 03:10 PM
 
Hi

They do restrict access to certain MAC addresses, but each port has 1 allowed address - the one of the terminal which is sitting there. So asking them to put me on the list wouldn't work.

Never mind.

Thanks anyway.

Tom.
What are you looking for? A signature?
     
COmie JOe
Dedicated MacNNer
Join Date: Dec 2000
Location: Old Country
Status: Offline
Reply With Quote
Feb 8, 2003, 03:29 PM
 
The link sys router is able to clone a MAC address, you could use one of those if you need to have it appear as if only one terminal is connected.
     
bradoesch
Professional Poster
Join Date: Jun 2000
Status: Offline
Reply With Quote
Feb 8, 2003, 06:35 PM
 
Originally posted by COmie JOe:
The link sys router is able to clone a MAC address, you could use one of those if you need to have it appear as if only one terminal is connected.
Can you program the router to clone specific MAC addresses?
     
:XI:
Mac Elite
Join Date: Sep 2002
Status: Offline
Reply With Quote
Feb 8, 2003, 07:38 PM
 
Originally posted by TomHMeredith:
Hi

They do restrict access to certain MAC addresses, but each port has 1 allowed address - the one of the terminal which is sitting there. So asking them to put me on the list wouldn't work.

Never mind.

Thanks anyway.

Tom.
Are you talking about MAC Addresses or IP addresses?
     
TomHMeredith  (op)
Forum Regular
Join Date: Nov 2000
Location: Elephant & Castle. UK.
Status: Offline
Reply With Quote
Feb 9, 2003, 02:47 AM
 
I assume that it is MAC addresses. My reasoning for this is that in my halls they have (apparently) the same system. When I registered that I had a computer I had to give them my MAC address for my iMac. When I tried plugging my PowerBook in I got no signal, and when I plug my iMac into someone else's room, I get no signal so that implies that specific ports have specific allowed MAC addresses.

Tom.
What are you looking for? A signature?
     
COmie JOe
Dedicated MacNNer
Join Date: Dec 2000
Location: Old Country
Status: Offline
Reply With Quote
Feb 10, 2003, 01:31 AM
 
Yes you can spesifiy exactly what address to clone.
     
Paco500
Professional Poster
Join Date: Apr 2000
Location: Berkshire, UK
Status: Offline
Reply With Quote
Feb 10, 2003, 02:11 AM
 
A MAC address can be changed. This is common practice on network equipment. You will have to do some digging, I couldn't find an easy way to do it, but I'm sure it's possible,

Try a more technically oriented forum. Or the newtorking forum here.

It can be done. This is a certianty.
     
pyramids
Fresh-Faced Recruit
Join Date: Feb 2003
Location: in the shadow of cheops' digs
Status: Offline
Reply With Quote
Feb 10, 2003, 10:52 AM
 
as far as I know they can't be changed although the router thing seems interesting. the MAC is a manufacturers code and it a unique number is built into the hardware of every network adapter made. different manufacturers have different ranges of MAC id's. there can never be two with the same number on the same network, so being able to change them is only asking for trouble, especially a portable device.

a router in your room may do it, but it would defeat the purpose of the system, to control overall traffic on a rather extended network.

you have two machines - how about connecting them via USB?
So, what? The post wasn't good enough, you want something here?!?
     
olePigeon
Clinically Insane
Join Date: Dec 1999
Status: Offline
Reply With Quote
Feb 10, 2003, 04:33 PM
 
You can change the MAC address rather easily, here's how:

Classic -

Open up your System Folder with ResEdit. Create a resource 'eadr' Type in a new MAC address (uses HEX, 6-bytes). Change the resource ID to the slot your ethernet is on (Zero if it's onboard). Save, restart.

When the system restarts, the ethernet driver will look for a resource 'eadr' before configuring the ethernet card. It will apply the new MAC address. If you want your old MAC address, just delete the eadr resource from your System Folder.

Mac OS X -

/sbin/ifconfig eth0 hw ether 00:00:00:00:00:01

I think.
"…I contend that we are both atheists. I just believe in one fewer god than
you do. When you understand why you dismiss all the other possible gods,
you will understand why I dismiss yours." - Stephen F. Roberts
     
COmie JOe
Dedicated MacNNer
Join Date: Dec 2000
Location: Old Country
Status: Offline
Reply With Quote
Feb 10, 2003, 07:33 PM
 
Originally posted by pyramids:
as far as I know they can't be changed although the router thing seems interesting. the MAC is a manufacturers code and it a unique number is built into the hardware of every network adapter made. different manufacturers have different ranges of MAC id's. there can never be two with the same number on the same network, so being able to change them is only asking for trouble, especially a portable device.

a router in your room may do it, but it would defeat the purpose of the system, to control overall traffic on a rather extended network.

you have two machines - how about connecting them via USB?
USB what are you on?
     
pyramids
Fresh-Faced Recruit
Join Date: Feb 2003
Location: in the shadow of cheops' digs
Status: Offline
Reply With Quote
Feb 11, 2003, 07:02 AM
 
a simple cable - available at radio shack - claims to allow you to share tcp/ip via the usb port. i haven't used it but there it is.
So, what? The post wasn't good enough, you want something here?!?
     
TomHMeredith  (op)
Forum Regular
Join Date: Nov 2000
Location: Elephant & Castle. UK.
Status: Offline
Reply With Quote
Feb 11, 2003, 07:14 AM
 
Hi

Thanks for your suggestions, but I already have internet on my iBook in my room through Airport (my iMac is set up to share my ethernet connection, and it works on my iBook).

What I want is a way for my iBook to 'clone' the MAC address of one of the computer terminals on campus, so I can unplug that machine, plug in my iBook and get onto the network, because I am out of range of my iMac's Airport range when I am there.

Tom.
What are you looking for? A signature?
     
COmie JOe
Dedicated MacNNer
Join Date: Dec 2000
Location: Old Country
Status: Offline
Reply With Quote
Feb 11, 2003, 08:37 PM
 
Originally posted by pyramids:
a simple cable - available at radio shack - claims to allow you to share tcp/ip via the usb port. i haven't used it but there it is.
I doubt that it will work for the Mac, and I further doubt that whatever terminal won't mind you installing software onto it.
     
olePigeon
Clinically Insane
Join Date: Dec 1999
Status: Offline
Reply With Quote
Feb 11, 2003, 09:29 PM
 
Ok, you guys obviously skipped right over my post.

Scroll up and read it. I gave instructions on how to change your MAC (Ethernet) Address.
"…I contend that we are both atheists. I just believe in one fewer god than
you do. When you understand why you dismiss all the other possible gods,
you will understand why I dismiss yours." - Stephen F. Roberts
     
TomHMeredith  (op)
Forum Regular
Join Date: Nov 2000
Location: Elephant & Castle. UK.
Status: Offline
Reply With Quote
Feb 12, 2003, 05:41 AM
 
Thank you olePigeon.

I assume that you put what you want the ethernet address to be in place of the "00:00:00:00:00:01" and that a restart is required?

I'll try it out later today or tomorrow.

Regards.

Tom.
What are you looking for? A signature?
     
rlotz
Fresh-Faced Recruit
Join Date: Jan 2003
Status: Offline
Reply With Quote
Feb 14, 2003, 08:16 PM
 
For whatever reason Apple doesn't allow you to change your MAC address via ifconfig. There are <a href="http://slagheap.net/etherspoof/">kernel patches</a> that will allow you to do it. However they probably haven't been tested on 10.2.4. Hell, I doub't Apple has even provided the development source for xnu on 10.2.4 yet.

That said, apple's KB entry to 10.2.4 states:
<blockquote><i>
Allows for use of a hardware Ethernet address with the ifconfig command in Terminal
</i></blockquote>

I've tried it on both en0 and en1 and haven't had success yet. I really wish Apple would just support MAC address changing by default. It's a very useful tool for network diagnositics.
     
Peter Panther
Fresh-Faced Recruit
Join Date: Mar 2003
Status: Offline
Reply With Quote
Mar 13, 2003, 07:45 PM
 
On X.2.3, the correct syntax, according to
man ifconfig
should be

# ifconfig en0 ether 00:50:de:ad:be:ef

however, that gives us :
ifconfig: ioctl (SIOCAIFADDR): Operation not supported

olepigeons commandline looks a +lot+ like linux-syntax, where ifconfig is correctly implemented and works as advertised. Should you really be determined to get there, you can
- install a flavor of Unix with a working ifconfig command, Linux, and the BSDs come to mind
- adapt the previously cited hack for recent Jaguar xnu and win extra geek-points in the process

I just checked fink, they don't seem to have ifconfig in stock.

BTW the fine admins do this to you to avoid that even more 31337 kidz than you brainwash the ethernet-switches and take over your connections, so be happy, they are clued.
( Last edited by Peter Panther; Mar 13, 2003 at 07:52 PM. )
     
rlotz
Fresh-Faced Recruit
Join Date: Jan 2003
Status: Offline
Reply With Quote
Mar 13, 2003, 11:47 PM
 
Originally posted by Peter
olepigeons commandline looks a +lot+ like linux-syntax, where ifconfig is correctly implemented and works as advertised. Should you really be determined to get there, you can
- install a flavor of Unix with a working ifconfig command, Linux, and the BSDs come to mind
- adapt the previously cited hack for recent Jaguar xnu and win extra geek-points in the process

I just checked fink, they don't seem to have ifconfig in stock.
[/B]
olepigeon obviously didn't try his suggestion. ifconfig is implemented properly. A fink/darwinports provied ifconfig wouldn't help. It's Apple's xnu that is lacking support. I keep hoping apple with either:

a) support it in xnu themselves, or
b) update their xnu sources so other people can support it.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 01:37 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,