I know the IP address of a host on my own LAN. Using that, how can I find its MAC address (without having to physically access it)?
|
If you are on a Windows machine, open a command box (Start...run...cmd), PING the target machine so you have made contact with it and then issue the command
If you are on a linux-based system, install the arp-scan utility and then from a command line you can ask for a scan of your network - in my case:
If you are using an interface other than ethernet, say, wireless, you will need to specify that, such as
If you don't know what interface you're using, simply use the command below.
|
|||||
|
|
Try
or:
You need admin access to the machine to do this. |
||||
|
|
|
If you have a managed switch or your router lets you view its ARP table you can get this from there. If the computer you have the IP for is online you can ping it and get its MAC from you local ARP table. A general note for the sake of others: it is not possible to obtain the MAC address for machines that are on a different LAN since Layer 3 protocols are used for addressing and delivery in this case and MAC is Layer 2. |
|||||||
|
|
You can use utility like http://trogonsoftware.com/trogon-mac-scanner.html or another ip\mac address scanner to scan network for addresses of remote computers on LAN. |
|||
|
|
|
As long as there is no gateway routing the traffic between the computers, any sniffer would give you this information. |
|||
|
|
You can always consult the arp table on your router (in some cases, the router combines the arp and dhcp lease tables together). |
|||||||
|
|
just use something like:
after adapting the params to your setup this will scan your whole subnet giving IP and MAC addrs |
|||
|
|
|
The command
|
|||
|
|
