Jerry Geis
2007-Dec-14 20:02 UTC
[CentOS] find IP address of device on network based on MAC address
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? Thanks, Jerry
Jim Perrin
2007-Dec-14 20:17 UTC
[CentOS] find IP address of device on network based on MAC address
On Dec 14, 2007 3:02 PM, Jerry Geis <geisj at pagestation.com> 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?Ping all the ips on your network, then use 'arp' to show the ip and mac linking. This should give you the information you need. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
Les Mikesell
2007-Dec-14 20:21 UTC
[CentOS] find IP address of device on network based on MAC address
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?You accumulate a table of mac<->ip assocations, but only after communicating with something. arp -a will show the current entries (which expire fairly quickly). You might ping everything in the network range, then look for the mac in the arp list. -- Les Mikesell lesmikesell at gmail.com
Marcelo Roccasalva
2007-Dec-14 20:33 UTC
[CentOS] find IP address of device on network based on MAC address
On Dec 14, 2007 5:02 PM, Jerry Geis <geisj at pagestation.com> 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?Most TCP/IP devices broadcast some gratuitous arp packet on boot which you should be able to "tcpdump" on the net -- Marcelo "?No ser? acaso que ?sta vida moderna est? teniendo m?s de moderna que de vida?" (Mafalda)
John R Pierce
2007-Dec-15 00:04 UTC
[CentOS] find IP address of device on network based on MAC address
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 192.168.0.1-254 && arp -an | grep -v incomplete