Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2860
  • Last Modified:

How to ping physical address

Hello,
i need to ping a machine is by its physical address.  can anyone help me on this?  i tired lots of ways but dont know yet. ( no IP address can be used.......just ping the physical address and confirm machine is connected to LAN).


0
shahidp
Asked:
shahidp
  • 3
  • 2
  • 2
  • +1
2 Solutions
 
Jay_Jay70Commented:
you can only ping a machine by a netbios name or an ip address
0
 
Jay_Jay70Commented:
or a normal DNS name as well :)
0
 
shahidpAuthor Commented:
i understand, but is there any way to know a physical address exists?  

(may be something by echo, packet replying to my target computer .....etc.....some unusual method)
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
rsivanandanCommented:
Install Ethereal on your machine, start capture. Then ping the ip address. I believe it should include mac address in the trace.

Cheers,
Rajesh
0
 
Jay_Jay70Commented:
nbtstat -a ipaddress    will give you the MAC address of that IP, i am not sure if that helps but thats all i can really give you at the moment :)
0
 
shahidpAuthor Commented:
i already know that MAC address.............i want to confirm that machine is connected to LAN.
0
 
rsivanandanCommented:
If you have the mac address then it is easy to find out right ?

At command prompt do this;

arp -g

It should give you the mac address and ip pair.


Then do arp -d => it will delete all arp cache from your machine.

Then do ping <ip address> .

If you get a reply then it is present on the LAN. To confirm the mac to ip binding just do arp -g again and see it. DONE!

Cheers,
Rajesh
0
 
Here2HelpCommented:
Hey.

I think this should do the trick.

Download this Program

Nbtscan
http://www.inetcat.org/software/nbtscan.html

Copy and paste this code into notepad (between the ===) and save the text as MACtest.bat.

=========================
@Echo Off
::Scans Network Addresses. Change IP range to the Range of your Network.
::Change the location of the output file if applicable
nbtscan 192.168.0.1-244 >>C:\FindMac.txt
CLS
::Replace MAC_ADDRESS with your real MAC you want to search for
Set MAC=MAC_ADDRESS
Find /I "%MAC%" C:\FindMac.txt >>Nul

::Check for for the MAC's Existence
IF %Errorlevel% == 1 Goto Dead
IF% Errorlevel% == 0 Goto Live

:Dead
Echo The MAC Address %MAC% is not present on the Network.
Pause
Goto :EOF
:Alive
Echo
%MAC% is Present on the Network:
Echo.
Find /I "%MAC%" C:\FindMac.txt
Pause

:EOF
Del C:\FindMac.txt

=========================

If the MAC address is found. It also displays:
-IP Address
-Hostname
-User that is logged in on that machine.

0
 
Here2HelpCommented:
Ooops, slight mistake. Try this instead
=========================
@Echo Off
::Scans Network Addresses. Change IP range to the Range of your Network.
::Change the location of the output file if applicable
nbtscan 192.168.0.1-244 >>C:\FindMac.txt
CLS
::Replace MAC_ADDRESS with your real MAC you want to search for
Set MAC=MAC_ADDRESS
Find /I "%MAC%" C:\FindMac.txt >>Nul

::Check for for the MAC's Existence
IF %Errorlevel% == 1 Goto Dead
IF %Errorlevel% == 0 Goto Live

:Dead
Echo The MAC Address %MAC% is not present on the Network.
Pause
Goto :EOF
:Alive
Echo
%MAC% is Present on the Network:
Echo.
Find /I "%MAC%" C:\FindMac.txt
Pause

:EOF
Del C:\FindMac.txt

=========================
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now