AllExperts > General Networking/Lan/Wan 
Search      
General Networking/Lan/Wan
Volunteer
Answers to thousands of questions
 Home · More General Networking/Lan/Wan Questions · Answer Library  · Encyclopedia ·
More General Networking/Lan/Wan Answers
Question Library

Ask a question about General Networking/Lan/Wan
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Ralph Becker
Expertise
General networks, including LAN (ethernet, cable modem, DSL), dialup (modems), WAN (frame relay, ATM), and other related networking technologies.

Experience
I have worked for 20 years in various network companies, in capacities including development, customer service, and operations.
Check out my bio/ratings page!
http://www.allexperts.com/expert.cgi?m=1&catID=1049&expID=20679
 
   

You are here:  Experts > Computing/Technology > Communications/Networks > General Networking/Lan/Wan > IP to MAC

General Networking/Lan/Wan - IP to MAC


Expert: Ralph Becker - 7/17/2006

Question
Dear Ralph

Thanks for the reply, one more question remains and I would really appreciate your help.
I'm currently working on a project in which I have to program a number of PIC microcontrollers to send and receive data on an Ethernet LAN.
Now, In order to make this transition possible, each micro must somehow detect the MAC address of  other micro units. For this, an ARP packet is sent, recieved on the other side and the rest of the story. In order to send the ARP, the sender should know it's own MAC address. How can we find the address?
Please correct me if I'm wrong on this point: the MAC address is already generated by the micro manufacturer and it has nothing to do with the unit's IP address.

Certainly and highly appreciated

Cheers
-------------------------

Followup To

Question -
Dear Tejas
On the ethernet, when a packet needs to be sent, the MAC address of the host and destination is needed. The host can send an ARP to get the destination's MAC address, but the destination should some how generate the MAC address itself from it's IP address. Know that the first 3 bytes are generated by the manufacturer of the network card (and please correct me if I'm wrong), how are the next 3 bytes generated?
Shot

Answer -
Hi Sadegh, and thanks for your question

Each ethernet device is required to generate a unique mac address upon request.  Most manufacturers use a small amount of firmware on the board and burn the unique address into the device at the factory.  

You are correct about the first three bytes being assigned to the manufacturer.  Here is a list of codes:

http://www.iana.org/assignments/ethernet-numbers

and here is a way to search the list by address or name:

http://www.coffer.com/mac_find/

For more information, please read the excellent article on MAC addresses over at Wikipedia:

http://en.wikipedia.org/wiki/MAC_address

or this one over at About.com:

http://compnetworking.about.com/od/networkprotocolsip/l/aa062202a.htm

I hope you find this helpful,

Ralph

Answer
Hi again,

You are correct, each ethernet device must have its own internal MAC address.  This is generates at a very low level, at Layer 2.  It is independant of the IP address, as you suggest.

The IP address is generated at a higher level, at Layer 3.  The IP software would always include a way to do an association between and IP address and its coresponding MAC address.

I hope this answers your questions.

Ralph

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.