LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Command for knowing IP address of the Systems connected in LAN (https://www.linuxquestions.org/questions/linux-hardware-18/command-for-knowing-ip-address-of-the-systems-connected-in-lan-628911/)

ravi_chobey 03-18-2008 07:27 AM

Command for knowing IP address of the Systems connected in LAN
 
Hi All,

I want to know ip address of all the Systems connected in the Lan on my Linux system through command prompt.Can anybody tell me that command.

Regards,
Ravi

camorri 03-18-2008 10:43 AM

You can do a ping sweep with nmap. Nmap has a gui, or you can run it command line. Here is a sweep of my home network.

Code:

nmap -sP -PT 192.168.1.1/24

Starting Nmap 4.20 ( http://insecure.org ) at 2008-03-18 11:41 EDT
Host 192.168.1.1 appears to be up.
Host presto_2 (192.168.1.15) appears to be up.
Host presto (192.168.1.22) appears to be up.
Host duelie (192.168.1.26) appears to be up.
Nmap finished: 256 IP addresses (4 hosts up) scanned in 2.232 seconds

BTW, I'm behind a firewall, using NAT.

Hope this helps.

ravi_chobey 03-19-2008 05:23 AM

Dear Camorri,

The comman worked for me.

Thanks for your support.

Ravi


All times are GMT -5. The time now is 05:00 PM.