Solved

I want to lookup a ip for a name and then get the mac address for the ip.

Posted on 2010-09-01
10
497 Views
Last Modified: 2012-05-10
I am on a windows 7 workstation.
I want to get the ip adddress for a server named " bart"
I then want to get the mac address for it.

I was trying ping, ping -a and then arp -a however the mac address never shows up in my arp table.  No mac addresses show up in my arp table.


0
Comment
Question by:TIMFOX123
10 Comments
 
LVL 7

Expert Comment

by:ieden
ID: 33581979
You can try nbtstat -a bart
0
 
LVL 3

Expert Comment

by:ola_erik
ID: 33582034
if u have install privileges and like apps go get
ColaSoft macscanner.

Picks at least all low flying fruit.
0
 

Expert Comment

by:h0m3rw
ID: 33582044
On my windows 7 workstation I am able to do the following for a server named surprise:

c:\>ping surprise
(result): Pinging surprise.domain.local [10.10.5.241] with 32 bytes

c:\>arp -a 10.10.5.241
(result)Interface (workstation IP)
Internet Address   Physical Address
10.10.5.241           00-0c-45-33-5e-ee

Another way is to use the getmac command which only works if you know the username and password to the machine that you are trying to get the mac address from

getmac /S 10.10.5.241 /U domain/administrator

0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 5

Expert Comment

by:adaroc
ID: 33582045
hi

try

nbtstat -a bart at a command prompt.

MAC address will be at the bottom.

post results
0
 

Author Comment

by:TIMFOX123
ID: 33582135
I tried this:

On my windows 7 workstation I am able to do the following for a server named surprise:

c:\>ping surprise
(result): Pinging surprise.domain.local [10.10.5.241] with 32 bytes

c:\>arp -a 10.10.5.241
(result)Interface (workstation IP)
Internet Address   Physical Address
10.10.5.241           00-0c-45-33-5e-ee

I do not get any mac addresses.  Our machines are welll locked down and I used to do this 10 years ago at another job.

Gerrrrrr
0
 
LVL 3

Expert Comment

by:esp-projects
ID: 33584880
You could try netscan which is a free utility (no installation required) it's available here http://www.softperfect.com/products/networkscanner/ (link to download is towards the bottom right) it should display the mac address for you.  You can either choose to scan your entire network or just a single IP address (since you already know what it is)

Hope this helps.
0
 
LVL 5

Expert Comment

by:adaroc
ID: 33585009
hi

I'm curious as to what happens when you do

nbtstat -a bart at a command prompt.

MAC address should be at the bottom.

post results
0
 
LVL 7

Accepted Solution

by:
expert1010 earned 300 total points
ID: 33585023
TIMOFOX123: 00-0c-45-33-5e-ee is the mac address. But mac addresses are a LAN thing and if the address do not connect to your LAN you'll not get the mac address through normal routing protocols. In short. The mac address is lost over router boundary. There could how ever be some clever scanning so that the box itself could reveal its mac address. SNMP, Netbois and such comes to mind. But don't count on it.
0
 
LVL 7

Expert Comment

by:ieden
ID: 33585675
Tim, if you are admin on the server,  use psexec \\bart ipconfig /all
0
 
LVL 26

Assisted Solution

by:jar3817
jar3817 earned 200 total points
ID: 33586455
The server will only be in the arp table (for 2 minutes) if it's in the same subnet as the workstation. If not, you'll probably only see the arp entry for your default gateway.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question