LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-07-2009, 05:56 AM   #1
arnuld
Member
 
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 211

Rep: Reputation: 30
Finding all IP addresses connected on LAN


I know my IP address on LAN. Is there any command in Linux which can tell the IP addresses of all the computers connected to my LAN ?

I tried google and got arp -na as answer:
Code:
[arnuld@dune ~]$ arp -na
? (192.168.0.202) at 00:11:11:BB:57:04 [ether] on eth0
? (192.168.0.1) at 00:21:86:A8:5F:27 [ether] on eth0
? (192.168.0.254) at 00:15:F2:C3:86:2E [ether] on eth0
? (192.168.0.253) at 00:15:F2:C7:1E:E7 [ether] on eth0
? (192.168.0.171) at 00:0A:E4:5B:DA:EB [ether] on eth0
[arnuld@dune ~]$
Now that did not show all of the IPs, there were 2-3 more computers that were connected but I don't see them there
 
Old 10-07-2009, 06:40 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Sounds like a job for nmap -- http://nmap.org/

Code:
$ nmap -sP 192.168.0.*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
finding the connected computers in lan kaushiksolanki Linux - Networking 2 03-02-2009 12:30 AM
finding companys mail addresses juanb Linux - Security 1 09-05-2004 02:29 AM
Finding Addresses Globally nodotnet Linux - Software 0 08-18-2004 03:52 PM
Finding all ip addresses from your dhcp servers J-Stew Linux - Networking 1 08-27-2002 07:19 AM
Finding mac addresses Chijtska Linux - Security 5 02-27-2002 04:34 AM


All times are GMT -5. The time now is 11:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration