How To Ping By MAC Address? Ping Command Prompt - Networking

this article will demonstrate how you can ping a network device if you only have the MAC address of the hardware you are trying to ping without an IP address on the network using the most common tool in windows the DOS command prompt and in linux shell

Webune Support

Mon Jan 11, 2010


1880 Visits


Welcome to Webune Suppport Forums.

Today's questions is regarding networking. the question is:

"is it possible to ping a device using only the mac address of the machine? or what tools i can use to check if a device is connected to the network"

ANSWER: the answer is no. IP Address is layer 3 of the OSI Model, and the MAC Address belongs to Layer 2

however, there is a way for example, if i have a network printer connected to my LAN but i can't ping it. the printer may be in your network and you probably are just pinging the wrong ip address for that printer. so how do you find the correct ip address? this is what i would do

go to the printer, usually devices will have the MAC ADDRESS printed on the back, so for example, lets say my printer has this MAC ADDRESS:


so what i can do is run the arp command. to run the arp utility, open your command terminal. i am using windows 7 for this tutorial, so i will use windows DOS terminal.

arp -a

it will give you a list of all the devices recorded in your computer:

this is the output on my computer:
C:\Users\MYPC>arp -a

Interface: --- 0xe
  Internet Address      Physical Address      Type           02-00-00-00-00-00     dynamic         ff-ff-ff-ff-ff-ff     static            01-00-5e-00-00-16     static           01-00-5e-00-00-fc     static       01-00-5e-7f-ff-fa     static       ff-ff-ff-ff-ff-ff     static

Interface: --- 0x12
  Internet Address      Physical Address      Type        01-00-5e-7f-ff-fa     static            01-00-5e-00-00-16     static           01-00-5e-00-00-fc     static       ff-ff-ff-ff-ff-ff     static

as you can see from the list, the device with 01-00-5e-7f-ff-fa is IP ADDRESS so i can ping that device now.
here is more information about how to use the arp command:
Displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).

ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr] [-v]

  -a            Displays current ARP entries by interrogating the current
                protocol data.  If inet_addr is specified, the IP and Physical
                addresses for only the specified computer are displayed.  If
                more than one network interface uses ARP, entries for each ARP
                table are displayed.
  -g            Same as -a.
  -v            Displays current ARP entries in verbose mode.  All invalid
                entries and entries on the loop-back interface will be shown.
  inet_addr     Specifies an internet address.
  -N if_addr    Displays the ARP entries for the network interface specified
                by if_addr.
  -d            Deletes the host specified by inet_addr. inet_addr may be
                wildcarded with * to delete all hosts.
  -s            Adds the host and associates the Internet address inet_addr
                with the Physical address eth_addr.  The Physical address is
                given as 6 hexadecimal bytes separated by hyphens. The entry
                is permanent.
  eth_addr      Specifies a physical address.
  if_addr       If present, this specifies the Internet address of the
                interface whose address translation table should be modified.
                If not present, the first applicable interface will be used.
  > arp -s   00-aa-00-62-c6-09  .... Adds a static entry.
  > arp -a                                    .... Displays the arp table.
here's another trick

lets say you know the mac address for your device, you can bind that mac address an ip on your computer so when you ping the ip, it will look for that mac address

so lets say i have a printer with a mac address of: 01-00-5e-7f-ff-fa

open your DOS terminal and send this command
arp -s 01-00-5e-7f-ff-fa

now try pinging - it will look for that device with that mac address we just assigned
can i login using mac address to a printer
this answer is wrong. you def can ping by mac address usin ssh.
your blog got help full to me for finding correct mac address related with ip
very good tip. it was useful .thx.
this is all good to me.. lol :d
Finally some real information! I was beginning to think forums were only full of misinformation and guesses.
damm, that did not work for me :(