LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-07-2010, 01:01 AM   #1
Sharad Garg
LQ Newbie
 
Registered: Dec 2010
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
Cool Original MAC ID Resolution


Hi,

I am new to Linux so my question might be stupid so apologies in advance.

Qus is - I understand that user can change the MAC ID of an ethernet interface but it is on higher level.

But is there any way to get the original MAC ID (through some low level) of a PC whose Mac is changed.

Regards
Sharad
 
Old 12-07-2010, 06:37 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
"ethtool" should be able to give you the "Physical hardware address" of your Ethernet card.
 
1 members found this post helpful.
Old 12-07-2010, 11:48 PM   #3
Sharad Garg
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Smile

Quote:
Originally Posted by paulsm4 View Post
"ethtool" should be able to give you the "Physical hardware address" of your Ethernet card.
Thanks a lot...it will definately help me.. but I think ethtool is also capable to change the MAC ID at the same level from where it reads.

So it is so, it wont help me...I want to resolve the Original MAC which was written by manufacturer of eth.

Thanks & Regards
Sharad
 
Old 12-08-2010, 12:29 AM   #4
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
ethtool is a network packet sniffer. Also it is used to view the configuration details.

The below command will change the MAC address.

"ifconfig hw"

For more information pl refer man page.

reg
 
Old 12-08-2010, 01:13 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Sharad Garg -

Ignore prodev05. "/usr/sbin/ethtool" is a standard Linux command; I believe it should give you the original, "Physical MAC address" that's burned in ROM.

Yes, "ifconfig hw" lets you CHANGE the "hardware address" (which, I'm guessing, you probably already knew). And yes, "ethtool" also lets you change this address.

But "ethtool" can also show you the NIC's ROM. Where, I believe, you should be able to get the address:
Quote:
ethtool -d|--register-dump ethX [raw on|off]

ethtool -e|--eeprom-dump ethX [raw on|off] [offset N] [length N]
If I'm wrong, there's also an ethtool ioctl() that should be able to help:
http://linux.derkeiler.com/Mailing-L.../msg00353.html
 
Old 12-08-2010, 04:27 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
You have to "burn" a new mac address. (address) To change it permanently.

If it has been changed there is no way to find out unless the card had it printed on the card somewhere.

One may be able to guess the first parts but the end number would be a total guess. If you bought a set of them, they may follow sequence. In fact many cards have exactly the same number. Mac address from major companies have run out long ago.

Last edited by jefro; 12-08-2010 at 04:29 PM.
 
Old 12-09-2010, 02:38 AM   #7
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Take a faulty card and replace its MAC address to the one which you want to change.

reg

Last edited by prodev05; 12-09-2010 at 03:12 AM. Reason: spelling mistake :D
 
1 members found this post helpful.
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out the original MAC address of an interfac zhjim Linux - Hardware 4 06-30-2009 11:33 AM
Ethernet MAC Addresses database; MAC address-based processing cctualatin Linux - Newbie 1 04-14-2009 08:59 AM
Linux / UNIX OS for Motorola RAZR v3 -- Sync it with OpenBSD 4.2/Mac 10.5/Mac 10.3 Doctorzongo Linux - Laptop and Netbook 0 04-30-2008 01:27 AM
ip address and mac address resolution mike_morley Linux - Networking 2 06-05-2007 10:46 AM
MAC address resolution. DanDeeks Linux - Networking 0 11-18-2006 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration