A step-by-step guide on finding the MAC address of your Raspberry Pi
Ever needed to find the MAC address of your Raspberry Pi? It is a crucial task for network administration and troubleshooting. This article will show you how to check your Raspberry Pi’s MAC address i …
Updated September 30, 2023
Ever needed to find the MAC address of your Raspberry Pi? It is a crucial task for network administration and troubleshooting. This article will show you how to check your Raspberry Pi’s MAC address in a few easy steps!
- Open a terminal window on your Raspberry Pi by pressing
Ctrl+Alt+T
or by clicking on the terminal icon on the desktop. - Type the following command into the terminal and press Enter:
ifconfig
- This will display all network interfaces available on your Raspberry Pi, including their IP addresses, broadcast addresses, and MAC addresses.
- Look for a line that starts with “eth0” (for Ethernet) or “wlan0” (for wireless). The MAC address is displayed next to the term “HWaddr”. For example:
eth0 Link encap:Ethernet HWaddr b8:27:eb:xx:xx:xx
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
In this example, the MAC address is “b8:27:eb:xx:xx:xx”.
Alternatively, you can use the following command to display only the MAC address of your Raspberry Pi:
cat /sys/class/net/eth0/address
or
cat /sys/class/net/wlan0/address
Depending on whether you are using Ethernet or wireless networking, replace “eth0” or “wlan0” as necessary. This command will display the MAC address in a more concise format:
b8:27:eb:xx:xx:xx
- Copy and paste the MAC address into your favorite text editor or document for future reference.
That’s it! Now you know how to check your Raspberry Pi’s MAC address. This information can be useful when setting up a network, troubleshooting connectivity issues, or identifying your device on the local area network.