LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Find the IP address of all devices in a network (https://www.linuxquestions.org/questions/linux-networking-3/find-the-ip-address-of-all-devices-in-a-network-4175557763/)

hack3rcon 11-02-2015 05:33 AM

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.

suicidaleggroll 11-02-2015 10:46 AM

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.

hack3rcon 11-03-2015 03:51 AM

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.

suicidaleggroll 11-03-2015 08:42 AM

And? Did you try running arp? Did it not give you what you were looking for?

hack3rcon 11-17-2015 06:29 AM

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.

hack3rcon 11-17-2015 06:30 AM

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.

Gary Baker 11-17-2015 06:35 AM

How about -sP nmap (your network)? What do you get?

hack3rcon 11-17-2015 06:38 AM

It is Ping Sweep and show all active IP then I must run Nmap on all IP to find devices.

Gary Baker 11-17-2015 07:00 AM

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.

zhjim 11-17-2015 08:22 AM

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


All times are GMT -5. The time now is 08:39 PM.