FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 12-15-2007, 02:26 PM
"David G. Miller"
Default find IP address of device on network based on, MAC address

John R Pierce <pierce@hogranch.com> wrote:

Jerry Geis wrote:

> I have a device on my network that is not DHCP and I dont know the IP
> address of it
> and it has not method of finding it or changing it unless you know the
> IP address (setable by browser).

> Is there a way on linux, based on MAC address, to get the IP of the unit?

$ nmap -n -sP -PI && arp -an | grep -v incomplete
I was hoping someone would mention nmap. Here's the output from a quick
(5.753 seconds) ping scan of my network:

[root@bend etc]# nmap -sP

Starting Nmap 4.20 ( http://insecure.org ) at 2007-12-15 08:10 MST
Host appears to be up.
MAC Address: 00:0A:5E:1A:EC:9E (3COM)
Host appears to be up.
MAC Address: 00:0F:B0:6D:61:9E (Compal Electronics)
Host appears to be up.
Host appears to be up.
MAC Address: 00:12:17:7A:B6:F6 (Cisco-Linksys)
Nmap finished: 256 IP addresses (4 hosts up) scanned in 5.753 seconds

You can also try letting nmap figure out what each device is with
something like:

nmap -T4 -A

My x86_64 laptop confused it but it was spot on at identifying my
wireless AP.


Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce

CentOS mailing list

Thread Tools

All times are GMT. The time now is 06:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org