One more thing, if I am looking for all devices on a lan I will often use nmap nmap -sP 192.168.0.0/24
Which also returns MAC address and hostname. You can can use nmap -O to help identify a specific device. $ nmap -O 192.168.1.2 Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-07-20 14:24 MDT Interesting ports on mediamvp.lan.meganerd.ca (192.168.1.2): (The 1662 ports scanned but not shown below are in state: closed) PORT STATE SERVICE 23/tcp open telnet MAC Address: 00:0D:FE:00:15:1A (Hauppauge Computer Works) Device type: general purpose Running: Linux 2.4.X|2.5.X OS details: Linux 2.4.0 - 2.5.20 Uptime 17.493 days (since Sun Jul 3 02:34:36 2005) Nmap finished: 1 IP address (1 host up) scanned in 3.869 seconds If you are looking for unauthorised devices you may need to use some of nmap's sneakier features (nmap -sF -P0 etc). On Wednesday 20 July 2005 14:11, Gustin Johnson wrote: > On Wednesday 20 July 2005 12:28, Cameron wrote: > > Hi All, > > > > Just wondering of anyone knew of a way to query a MAC address to > > determine the ip, hostname or any of that other stuff. I know it can be > > done but I am just having a huge bran fart and can't think of it. > > There may be a better way but I use the following: > arp -v -a -H ether |grep 01:23:34:56:78:9A > > Which returns: > hostname.full.dns.tld (192.168.0.1) at 001:23:34:56:78:9A [ether] on eth0 > > > It this makes a difference it is on a Windows machine or a peice of > > hardware (i.e. printer, switch, etc.) > > The type of hardware does not make a difference. This command syntax is > specific to my linux box, the windows arp program has a slightly different > syntax (it does not appear to be as nearly verbose as the linux version) > but then I tend to work as little as possible in the win32 environment. > > arp -a |grep <mac addr> works for me, but I have the cygwin grep installed. > > > Any hints would be great. > > > > Cameron
pgpaS9h37uN2W.pgp
Description: PGP signature
_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

