# Finding the Mac address of RPi

**URL:** <https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338>\
**Category:** Raspberry Pi\
**Created:** [February 7, 2017, 11:54pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338 "2017-02-07T23:54:19Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjamindeleener](https://forum.farmbot.org/user_avatar/forum.farmbot.org/benjamindeleener/32/911_2.png) [@benjamindeleener](https://forum.farmbot.org/u/benjamindeleener)\
**Post date:** [February 7, 2017, 11:54pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/1 "2017-02-07T23:54:19Z")

</div>

Hello Team,

Is there an easy way of getting the Mac address of the Raspberry Pi?  
I would need it to setup an access to restricted network.

Thank you very much!  
Benjamin

---

<div class="post-metadata">

**Author:** ![fluffy](https://forum.farmbot.org/user_avatar/forum.farmbot.org/fluffy/32/248_2.png) [@fluffy](https://forum.farmbot.org/u/fluffy)\
**Post date:** [February 9, 2017, 6:54pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/2 "2017-02-09T18:54:22Z")

</div>

I don’t really know but one way might be … if you have a serial console cable attached to th PI, you might be able to do “ifconfig eth0” to find it.

---

<div class="post-metadata">

**Author:** ![RussNelson](https://forum.farmbot.org/user_avatar/forum.farmbot.org/russnelson/32/33_2.png) [@RussNelson](https://forum.farmbot.org/u/RussNelson)\
**Post date:** [February 13, 2017, 6:11am UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/3 "2017-02-13T06:11:48Z")

</div>

Fluffy’s answer is correct. You can also say ip link show eth0 and look for “brd”.

---

<div class="post-metadata">

**Author:** ![benjamindeleener](https://forum.farmbot.org/user_avatar/forum.farmbot.org/benjamindeleener/32/911_2.png) [@benjamindeleener](https://forum.farmbot.org/u/benjamindeleener)\
**Post date:** [February 13, 2017, 5:19pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/4 "2017-02-13T17:19:19Z")

</div>

Thank you both! I was able to get the MAC address.

Benjamin

---

<div class="post-metadata">

**Author:** ![alexf](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@alexf](https://forum.farmbot.org/u/alexf)\
**Post date:** [February 20, 2018, 4:28pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/5 "2018-02-20T16:28:57Z")

</div>

If it helps anyone, I have noticed that the wifi interface MAC address is the same as the MAC address advertised during the setup phase.

With a tool such as Wi-Fi Explorer you do not only see the SSID farmbot-abcd but you can also see its MAC address (MAC address of the AP): b8:27:eb:xx:xx:xx  
The first 3 groups of characters (b8:27:eb) represent the OUI for Raspberry Pi; the rest of the characters are unique for your RPi.

---

<div class="post-metadata">

**Author:** ![Intelbotfarmer](https://forum.farmbot.org/user_avatar/forum.farmbot.org/intelbotfarmer/32/1320_2.png) [@Intelbotfarmer](https://forum.farmbot.org/u/Intelbotfarmer)\
**Post date:** [January 28, 2019, 2:07pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/6 "2019-01-28T14:07:31Z")

</div>

Does anyone have a quick way to get the wired raspberry pi MAC address?

---

<div class="post-metadata">

**Author:** ![jsimmonds](https://forum.farmbot.org/user_avatar/forum.farmbot.org/jsimmonds/32/1470_2.png) [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Post date:** [January 29, 2019, 1:39am UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/7 "2019-01-29T01:39:00Z")

</div>

The WebApp will show you . . click on the version number to get a nice pop-up.  
Take the last 6 hex chars of `Node name:` as the xx in the full MAC address `b8:27:eb:xx:xx:xx`

In my case, this is `d7f390`

 ![image](https://forum.farmbot.org/uploads/default/original/2X/1/1cb3195c3d2e1f6c1c4d9e788e78f1c1fafb0b8c.png)

---

<div class="post-metadata">

**Author:** ![Intelbotfarmer](https://forum.farmbot.org/user_avatar/forum.farmbot.org/intelbotfarmer/32/1320_2.png) [@Intelbotfarmer](https://forum.farmbot.org/u/Intelbotfarmer)\
**Post date:** [January 29, 2019, 12:24pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/8 "2019-01-29T12:24:07Z")

</div>

I think that is the WiFi MAC.  
I need the Ethernet MAC in order to have the school IT folks open the network to this node. ( so I need it in order to be able to access the web tool. Kind of a cart before the horse thing.  
My thought is to just temporarily bring a small wired router out to the plot, set up a lan between my laptop & the FB, and tap into the router and see if I can get the FB Ethernet MAC from the router. I was just wondering if I could do it without having to go that route.

---

<div class="post-metadata">

**Author:** ![Gabriel](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forum.farmbot.org/u/Gabriel)\
**Post date:** [January 29, 2019, 4:32pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/9 "2019-01-29T16:32:16Z")

</div>

During the [network selection step](https://software.farm.bot/docs/configurator#section-step-2-enter-credentials) of configuration, you can press the small info icon beneath the network icon to view network interface details, as described in the documentation.

---

<div class="post-metadata">

**Author:** ![jsimmonds](https://forum.farmbot.org/user_avatar/forum.farmbot.org/jsimmonds/32/1470_2.png) [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Post date:** [January 30, 2019, 2:48am UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/10 "2019-01-30T02:48:43Z")

</div>

No it’s not the Wi-Fi MAC address, it’s always the last 3 octets of the **Ethernet** MAC address.  
( that 64-bit number is the Raspberry Pi `Serial` which is published in `/proc/cpuinfo` )

---

<div class="post-metadata">

**Author:** ![Intelbotfarmer](https://forum.farmbot.org/user_avatar/forum.farmbot.org/intelbotfarmer/32/1320_2.png) [@Intelbotfarmer](https://forum.farmbot.org/u/Intelbotfarmer)\
**Post date:** [January 31, 2019, 12:57pm UTC](https://forum.farmbot.org/t/finding-the-mac-address-of-rpi/1338/11 "2019-01-31T12:57:34Z")

</div>

@Gabriel  
Just as you ( and the documentation) said, the MAC addresses are there for the world to see!  
Thank you!  
(And I will try to do a better job of R’ing the FM… (Reading the Fricking Manual) before posting next time) 🙂
