Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Resolving MAC addresses to IP Addresses

Thread Tools
 
Search this Thread
 
Old 21 May 2002, 05:23 PM
  #1  
J T
Scooby Regular
Thread Starter
 
J T's Avatar
 
Join Date: May 2001
Posts: 40
Likes: 0
Received 0 Likes on 0 Posts
Post

If you know a MAC address on a LAN, how do you find out what IP address the MAC address to resolved to.

Cheers

Old 21 May 2002, 05:40 PM
  #2  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

RARP

If you're on a host on the same subnet

"arp -a" on a Win2K/NT/Linux box will give the IP to MAC table - search the MACs for the one you want

(n.b. the host must have talked IP to the device for the MAC address to show up - best therefore to use a router or server tha you knwo talks to it)

There's probably a unix tool to actually do the RARP query directly but I dont know it

Deano

[Edited by dsmith - 5/21/2002 5:44:18 PM]
Old 21 May 2002, 05:43 PM
  #3  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

On some hosts you can force it to query all IP addresses for the MAC by pinging the subnet broadcast address.
Old 21 May 2002, 05:50 PM
  #4  
J T
Scooby Regular
Thread Starter
 
J T's Avatar
 
Join Date: May 2001
Posts: 40
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks for that If you have a lot of MAC addresses it can take a while going through the ARP table.

Is their an app that will allow you to put in one MAC address and return its IP.

Old 21 May 2002, 05:55 PM
  #5  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

grep

(or "find" on windows)
e.g.
Linux : "arp -a | grep 000:B7:46:E5:8D"
Windows : "arp -a | find "00-D0-B7-46-E5-8D"
Cisco Rtr : "sh arp | inc 00d0.b746.e58d"

[Edited by dsmith - 5/21/2002 5:59:44 PM]
Old 21 May 2002, 09:34 PM
  #6  
dowser
Scooby Senior
 
dowser's Avatar
 
Join Date: Oct 2000
Location: Zurich, Switzerland
Posts: 3,105
Likes: 0
Received 0 Likes on 0 Posts
Post

Or jump on the subnet's gateway router/s and issue a 'sh ip arp' (if it's blue). Still need to search the output though.

Richard
Old 21 May 2002, 10:15 PM
  #7  
dowser
Scooby Senior
 
dowser's Avatar
 
Join Date: Oct 2000
Location: Zurich, Switzerland
Posts: 3,105
Likes: 0
Received 0 Likes on 0 Posts
Post

Doh..must read posts b4 posting

Trending Topics

Old 22 May 2002, 10:01 AM
  #8  
J T
Scooby Regular
Thread Starter
 
J T's Avatar
 
Join Date: May 2001
Posts: 40
Likes: 0
Received 0 Likes on 0 Posts
Post

Tried typing in

arp -a | find 00-D0-B7-46-E5-8D

In to windows command and got the reply: FIND: Parameter format not correct.

Any ideas?
Old 22 May 2002, 10:11 AM
  #9  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

mac address needs quotes
arp -a | find "MAC HERE"
Old 22 May 2002, 12:39 PM
  #10  
Dr Hu
Scooby Regular
 
Dr Hu's Avatar
 
Join Date: Jul 1999
Location: Shropshire
Posts: 2,830
Received 24 Likes on 23 Posts
Post

How do you get the straight line after the -a It looks like the pipe key ¦ - but it doesnt like this?

This command would be very useful!


Old 22 May 2002, 12:55 PM
  #11  
J T
Scooby Regular
Thread Starter
 
J T's Avatar
 
Join Date: May 2001
Posts: 40
Likes: 0
Received 0 Likes on 0 Posts
Post

It is the pipe key, unsure why it appears as | when i type it in here.
Old 22 May 2002, 02:33 PM
  #12  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

One of the "lesser" windows 95/98/Me ? doesn't like pipe I think. It should work just fine on NT/2K/XP I beleive

its defo pipe - above backslash
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
S3LDM
Wales
56
09 December 2015 01:10 PM
S3LDM
ScoobyNet General
32
01 December 2015 09:35 AM
Wish
Computer & Technology Related
3
30 September 2015 10:39 PM
Littleted
Computer & Technology Related
0
25 September 2015 08:44 AM
jobegold@hotmail.co.uk
ScoobyNet General
43
24 September 2015 02:16 PM



Quick Reply: Resolving MAC addresses to IP Addresses



All times are GMT +1. The time now is 03:37 PM.