If you need the MAC address of your Raspberry Pi for Wi-Fi or Ethernet (cable) internet, follow these simple steps:
Step 1: Open the Terminal
To get started, open the terminal on your Raspberry Pi. You can do this by pressing Ctrl + Alt + T on your keyboard.
Step 2: Check Your Network Interfaces
In the terminal, type the following command:
ip address
This will display details about all network interfaces on your Raspberry Pi, including their MAC addresses.
Step 3: Identify Your Connection Type
Look for the section that matches how youβre connecting to the network:
- Wi-Fi Connection:
The interface is usually named wlan0
.
Under wlan0
, find the line that starts with link/ether
. The MAC address is listed there. For example:
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff
In this case, the MAC address is aa:bb:cc:dd:ee:ff
.
- Ethernet Connection (Cable):
The interface is usually named eth0
.
Similarly, under eth0
, find the link/ether
line. For example:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 11:22:33:44:55:66 brd ff:ff:ff:ff:ff:ff
Here, the MAC address is 11:22:33:44:55:66
.
Step 4: Provide the MAC Address
Once youβve identified the correct interface, provide the MAC address to your network administrator.
- Use
wlan0
for Wi-Fi.
- Use
eth0
for a cable connection.
If you have any issues, feel free to contact your admin or refer to the Raspberry Pi documentation for additional help!