1

My Ethernet shield dont have any MAC address, please tell me how to find the MAC address, I'm stucked! Here is the link from where I bought the Ethernet shield.
http://www.amazon.in/gp/product/B00AXVX5D0?ie=UTF8&at=&force-full-site=1&ref_=aw_bottom_links

gone
3541 gold badge5 silver badges13 bronze badges
asked Feb 18, 2015 at 14:04

2 Answers 2

1

You can set the Mac address to whatever you want. Many of the example sketches will have one already present, but as long you follow the standard mac format it should be happy (I am using the same shield). In the Examples menu, you should see Ethernet then Webserver where you can find the following example. You can change it a bit, but most of the time I just leave it alone.

byte mac[] = { 
 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
answered Feb 18, 2015 at 16:28
1
  • "You can set the Mac address to whatever you want." Yes, if you don't care about duplicated addresses, already assigned addresses or even broadcast addresses. To do it right, read a bit about MAC addresses, e.g. starting with Wikipedia about MAC addresses Commented Aug 12, 2015 at 15:25
3

Ethernet will work as long as two different machine in the LAN don't have the same MAC address, as @Nathan wrote in his answer.

The MAC address is built by two parts, a prefix which are given to manufacturers of network devices and is called OUI, and a suffix that is the node part that manufacturers can use as they wish.

If you want to build an MAC address yourself, use a Locally administered address. Universally administered and locally administered addresses are distinguished by setting the second-least-significant bit of the most significant byte of the address. That will make this address to not use any OUI prefix, as that bit is zero on OUI, which minimize the risk of two or more devices have the same MAC address in same LAN.

If you get the same MAC addresses you will get very strange results if they happen to be in the same LAN, I tell you. Been there, done that, and it wasn't fun to debug.

Here are a site that looks up MAC addresses (and generate random ones). But if you want to see which manufacturer have that MAC address, you read it from IEEE and their list.

answered Feb 18, 2015 at 17:51
2
  • so can i use the mac address which is generated by random mac address generator from the link u provided? Commented Feb 19, 2015 at 9:42
  • Yes, you can. But it is still up to you to know that the MAC address is unique for your LAN, because you could theoretically end up with two equal addresses, even though the risk are rather slim. But still slimmer than to use one that are used in examples, like DE:AD:BE:EF:FE:ED. ;-) Commented Mar 8, 2015 at 0:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.