PDF download Download Article
Locate a MAC address using OS, Windows, or Linux
PDF download Download Article

Finding the media access control (MAC) address, or hardware address, for the hosts on your network is a fairly simple process. It involves the use of the address resolution protocol (ARP), which converts Internet protocol (IP) addresses into the MAC address. All the common operating systems (OS) include the "arp" command that allows for easy discovery of the MAC addresses on the network. In this article, you'll learn about finding the MAC address on OS X, Microsoft Windows, and Linux OS.

How to Look Up a MAC Address on Network

On OS X, Windows, and Linux, open the terminal app, command prompt, or console window. Enter “sudo arp -a” (OS, Linux) or “arp -a” (Windows) to find all discovered MAC addresses. Then, ping the target IP by typing “ping 192.168.1.112”.

Method 1
Method 1 of 4:

OS X

PDF download Download Article
  1. The quickest way to find all discovered MAC addresses is done listing all the current entries in the ARP table.[1]
    • sudo arp -a
  2. If the IP and MAC address pair aren't listed in the output, then you must first "ping" the target IP.
    • ping 192.168.1.112
    Advertisement
  3. If the ping returns a positive response, then you can review the ARP information using either of the following methods.Either of these commands will provide the IP to MAC address mapping.
    • sudo arp 192.168.1.112
    • sudo arp -a
  4. Advertisement


Method 2
Method 2 of 4:

Microsoft Windows

PDF download Download Article
  1. The quickest way to find all discovered MAC addresses is done listing all the current entries in the ARP table.[2]
    • arp -a
  2. If the IP and MAC address pair aren't listed in the output, then you must first "ping" the target IP.
    • ping 192.168.1.112
  3. If the ping returns a positive response, then you can review the ARP information using either of the following methods.Either of these commands will provide the IP-to-MAC address mapping.
    • arp 192.168.1.112
    • arp -a
  4. Advertisement


Method 3
Method 3 of 4:

Linux

PDF download Download Article
  1. The quickest way to find all discovered MAC addresses is done listing all the current entries in the ARP table.
    • sudo arp -a
  2. If the IP and MAC address pair aren't listed in the output, then you must first "ping" the target IP.
    • ping 192.168.1.112
  3. If the ping returns a positive response, then you can review the ARP information using either of the following methods.Either of these commands will provide the IP-to-MAC address mapping.
    • sudo arp 192.168.1.112
    • sudo arp -a
  4. Advertisement


Method 4
Method 4 of 4:

Linux arp-scan Utility

PDF download Download Article
  1. 1
    On the Linux OS you can avoid pinging individual hosts and then querying for the MAC address by using the arp-scan utility.  The arp-scan utility makes it very easy to discover all the IP-to-MAC address pairs on a subnet.
  2. The arp-scan utility has many available options, but the simplest method is to issue the command with a subnet parameter.  This will build an arp table of all network accessible hosts and print the output to the console.
    • sudo arp-scan 192.168.1.0/24
  3. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • When on Linux, use the arp-scan utility to quickly scan an entire subnet for IP-to-MAC pairs.
  • If no results are returned for your ARP request, try pinging the host and then submitting the ARP request.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • Remember that ARP is not a routed protocol, so it will only provide you the IP-to-MAC address information for your local network.
Advertisement

You Might Also Like

Find the MAC Address of Your ComputerFind the MAC Address of Your Computer
Check if a Port is Open: 5 Quick Ways
Set Up Port Forwarding on a Router Forward a Port on Any Router: Easy Guide
Connect Two ComputersConnect Two Computers: Microsoft Windows & Mac OS X
Flush DNS Flush DNS (Clear the Cache) in All Major Operating Systems
Change a Computer's Mac Address in Windows3 Ways to Change a Computer's Mac Address in Windows
Get a MAC Address from an IP RemotelyGet a MAC Address from an IP Remotely
Create a Local Area Network (LAN)Create a Local Area Network (LAN)
Join a Computer to a Domain Join a Domain on a Windows Computer or Mac
Configure Your PC to a Local Area NetworkEasy Ways to Set Up and Connect to a Local Area Network (LAN)
Connect One Router to Another to Expand a NetworkConnect One Router to Another to Expand a Network
Set up a Network Drive Set up a Shared Network Drive
Bypass a Firewall or Internet FilterBypass a Firewall or Internet Filter
Access Shared Folders on a Network2 Easy Ways to Connect to and Access Shared Folders on a Network
Advertisement

About This Article

Garnik Ovsepyan
Co-authored by:
Computer Specialist
This article was co-authored by Garnik Ovsepyan. Garnik Ovsepyan is a Computer Specialist and the Owner of HeliX PC based in Burbank, California. With over 25 years of experience, Garnik specializes in custom computer builds, computer repairs, virus removal, computer tune-ups, hardware and software troubleshooting and installations, diagnostics, and data backup and recovery. This article has been viewed 226,630 times.
How helpful is this?
Co-authors: 7
Updated: August 16, 2024
Views: 226,630
Categories: Computer Networking
Thanks to all authors for creating a page that has been read 226,630 times.

Is this article up to date?

Advertisement