Link to home
Start Free TrialLog in
Avatar of TIMFOX123
TIMFOX123Flag for United States of America

asked on

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.


Avatar of ieden
ieden

You can try nbtstat -a bart
if u have install privileges and like apps go get
ColaSoft macscanner.

Picks at least all low flying fruit.
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

hi

try

nbtstat -a bart at a command prompt.

MAC address will be at the bottom.

post results
Avatar of TIMFOX123

ASKER

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
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.
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
ASKER CERTIFIED SOLUTION
Avatar of expert1010
expert1010
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Tim, if you are admin on the server,  use psexec \\bart ipconfig /all
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial