Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAC -> IP

Status
Not open for further replies.

trqchina

IS-IT--Management
Nov 20, 2003
28
0
0
HK
Dear friends,

How can I find the IP address corresponting with the specific MAC within an ethernet? I found some tools but mostly it could find IP -> MAC. Anyone has any other solutions?

Thanks in Advance
Jack
 
There are reverse arp lookup utilities for Unix, but for Windows use Tek-Tip member ricpinto's trick:

Let say your network is class c with the address range 192.168.0.1 - 192.168.0.254 then run the command below:

c:\>FOR /L %i IN (1,1,254) DO nbtstat -a 192.168.0.%i>>nbtstat.txt

(1,1,254) - (start,step,end)
%i - variable.
nbtstat.txt - Resulting file.


This event will take awhile . .

Now open file nbtstat.txt and search for the MAC address you're looking for.
 
Am I missing something?

How does this work:

c:\>FOR /L %i IN (1,1,254) DO nbtstat -a 192.168.0.%i>>nbtstat.txt

 
It uses the command 'nbtstat -a' in a loop, spanning from IP address 192.168.0.1 to 192.168.0.254.

It then writes the result to the file nbstat.txt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top