LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2015, 05:33 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Find the IP address of all devices in a network


Hello.
I want to find the IP address of all devices and IP range in a network. I found some tools like "AutoScan" or "netdiscover" but I guess they can't work in a VLANs network.

Any idea?

Tnx.
 
Old 11-02-2015, 10:46 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Try running "arp"

It won't give you everything (some clients don't respond to ARP requests), but it should give you most of them. You could also check the dhcp server's table for the current dhcp leases.

Last edited by suicidaleggroll; 11-02-2015 at 10:47 AM.
 
1 members found this post helpful.
Old 11-03-2015, 03:51 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Devices like Router and Switches have their own IP addresses. I want to find them. For example, We use a UTM in out network and out gateway IP address is 192.168.1.1 but How can I see the admin console of this UTM, I must have the IP.
 
Old 11-03-2015, 08:42 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
And? Did you try running arp? Did it not give you what you were looking for?
 
Old 11-17-2015, 06:29 AM   #5
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
arp show me mine information :
172.30.10.62 ether C eth1

It is the IP address of a Switch that I plugged to it but how about other switches? It is my problem.

Last edited by hack3rcon; 11-17-2015 at 06:32 AM.
 
Old 11-17-2015, 06:30 AM   #6
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
arp show me mine information :
172.30.10.62 ether XX:XX:XX:XX:XX:XX C eth1

It is the IP address of a Switch that I plugged to it but how about other switches? It is my problem.
 
Old 11-17-2015, 06:35 AM   #7
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
How about -sP nmap (your network)? What do you get?
 
Old 11-17-2015, 06:38 AM   #8
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
It is Ping Sweep and show all active IP then I must run Nmap on all IP to find devices.
 
Old 11-17-2015, 07:00 AM   #9
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
Nmap, ping and arp are the only tools I know. I never found arp to be very comprehensive but then again YMMV. You may have to write a perl script to nail it down. Keep us updated.
 
Old 11-17-2015, 08:22 AM   #10
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Logs some more infos then your local arp cache: https://en.wikipedia.org/wiki/Arpwatch
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the steps to find all the IP's of devices connected to my wireless network? hari921019 Linux - Newbie 1 05-23-2014 04:40 AM
How to find all the snmp enabled devices in my network ? pradiptart Linux - Networking 3 08-10-2012 10:08 AM
Find my network address rackham Linux - Newbie 1 07-31-2009 11:14 PM
network-manager can't find my wireless devices asimov Ubuntu 4 09-27-2007 09:48 AM
Cannot find wlan0 in network devices sublyme718 Linux - Wireless Networking 2 11-06-2005 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration