• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

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

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
TIMFOX123
Asked:
TIMFOX123
2 Solutions
 
iedenCommented:
You can try nbtstat -a bart
0
 
ola_erikCommented:
if u have install privileges and like apps go get
ColaSoft macscanner.

Picks at least all low flying fruit.
0
 
h0m3rwCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
AlexTechCommented:
hi

try

nbtstat -a bart at a command prompt.

MAC address will be at the bottom.

post results
0
 
TIMFOX123Author Commented:
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
 
esp-projectsCommented:
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
 
AlexTechCommented:
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
 
expert1010Commented:
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
 
iedenCommented:
Tim, if you are admin on the server,  use psexec \\bart ipconfig /all
0
 
jar3817Commented:
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now