Avatar of Joe
Joe
Flag for United States of America asked on

Resolving mac address to IP or Computer Name

I am trying to find a way to resolve MAC address to ip address (or to Computer Name) on my enterprise network running windows server 2003 and XP.

I have a bunch of mac addresses from one of our switches but no IP's or computer name.

Is there a command or tool that will do this?

I already know how to resolve IP to MAC but not the other way around.
Windows Server 2003Switches / HubsWindows XP

Avatar of undefined
Last Comment
Joe

8/22/2022 - Mon
AriMc

Command:

   arp -a

lists the IP/ARP correlation table currently in the computer's arp-cache. Try that first and then you could try pinging all IP's and then doing "arp -p".

SEASONEDSOLDER

Instead of attempting to manually resolve, just login directly into the switch. You should see somewhere within your management interface depending upon the type of switch, a listing of IP's and MAC addresses associated with the IPs.
☠ MASQ ☠

Using the Address Resolution Protocol might help

Try
arp -a
at a command prompt

See if that's close to what you need
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Speshalyst

topdavis

If you are running Cisco switches you can find out the ip address if you know the mac

show arp | include <mac-address in xxxx.yyyy.zzzz format>

You can also do a partial mac in the command as well and it will return the corresponding ip/mac relationships.

If you do this on a regular basis or need to, there is a tool by ManageEngine which will do switch port mapping for you.  It will tie the ip address, mac address, and tell you what port the device is plugged into.
www.deviceexpert.com
Joe

ASKER
I will give these a shot.

We have Alcatel switches by the way. Garbage
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Guillermo Feijóo

Hi:

       If you have DHCP servers.
   
Doing a "netsh dhcp server dump >***\dhcpDump.txt" may help. There you have all the address leases and reservations with their mac address.
ASKER CERTIFIED SOLUTION
Craig Beck

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Joe

ASKER
Yeah that's what we ended up doing. I knew about exporting the list in DHCP but that wasn't what they wanted until i showed them it was the easiest way to do it.

Thank You
Craig Beck

Sometimes the boring way is the best! :-)
Your help has saved me hundreds of hours of internet surfing.
fblack61
AriMc

Checking the DHCP won't reveal MACs of any fixed IP-addresses though.

Joe

ASKER
Thanks a lot