LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-22-2005, 02:08 PM   #1
ody1
Member
 
Registered: Dec 2002
Posts: 39

Rep: Reputation: 15
find out ip's in your local network


Hello,

Does anyone know how may I find out all computers (I mean ip-addresses) that are in the same network as my computer?
I tried the nmap command:

nmap -sP 192.168.0.0/28
(it supposes to do a ping scan to the first 16 ip addresses of the network 192.168.0.0)
The result was:
Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2005-03-22 21:48 EET
Host 192.168.0.3 appears to be up.
Host metal.pal (192.168.0.5) appears to be up.
Host SpeedTouch.mshome.net (192.168.0.14) appears to be up.
Nmap run completed -- 16 IP addresses (3 hosts up) scanned in 1.115 seconds

192.168.0.3 is a cpu, running windows
192.168.0.5 is my ip address (linux suse9.1)
192.168.0.14 is the dsl router ip
There are 2 more computers in the network running windows, and though I can ping them manually successfully, the nmap doesn't report them. The reason I want to find out the ip addresses is that I have a wireless network and a laptop configured to take ip address by a dhcp server (from the dsl router) and this ip is different every time.
I can't understand why nmap fails to find all ip's..... do you know any alternatives? thanks..
 
Old 03-22-2005, 03:02 PM   #2
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
You understand, specifying a /28 subnet is only going to scan 1-14 ip's

I'm not sure if you really are using a /28, but you didn't provide the IP addresses of the hosts you were trying to find.

Here is a little info on subnets.

http://www.more.net/technical/netserv/tcpip/subnet.html
 
Old 03-22-2005, 08:57 PM   #3
sandgroper
Member
 
Registered: Jul 2004
Location: Perth , Western Australia
Distribution: Fedora Core 5 , Mint 9
Posts: 118

Rep: Reputation: 15
Re: find out ip's in your local network

Quote:
Originally posted by ody1
Hello,

Does anyone know how may I find out all computers (I mean ip-addresses) that are in the same network as my computer?
I tried the nmap command:

Use nmapfe in a terminal , it's a GUI based frontend to nmap and it's very easy to use.
 
Old 03-23-2005, 11:02 AM   #4
ody1
Member
 
Registered: Dec 2002
Posts: 39

Original Poster
Rep: Reputation: 15
That's the thing I don't understand. Although these 2 computers (running windows) have ip's in the range of 1-14 (i.e. 192.168.0.6), and I can ping them successfully, nmap doesn't report them, neither nmapfe (which is really nice).

for example:
ody@metal:~> ping 192.168.0.5
PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data.
64 bytes from 192.168.0.5: icmp_seq=1 ttl=64 time=0.081 ms
64 bytes from 192.168.0.5: icmp_seq=2 ttl=64 time=0.073 ms

ody@metal:~> ping 192.168.0.6
PING 192.168.0.6 (192.168.0.6) 56(84) bytes of data.
64 bytes from 192.168.0.6: icmp_seq=1 ttl=128 time=0.244 ms
64 bytes from 192.168.0.6: icmp_seq=2 ttl=128 time=0.248 ms
64 bytes from 192.168.0.6: icmp_seq=3 ttl=128 time=0.230 ms

ody@metal:~> ping 192.168.0.14
PING 192.168.0.14 (192.168.0.14) 56(84) bytes of data.
64 bytes from 192.168.0.14: icmp_seq=1 ttl=64 time=0.490 ms
64 bytes from 192.168.0.14: icmp_seq=2 ttl=64 time=0.433 ms

ody@metal:~> nmap -sP 192.168.0.0/28

Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2005-03-23 18:51 EET
Host metal.pal (192.168.0.5) appears to be up.
Host SpeedTouch.mshome.net (192.168.0.14) appears to be up.
Nmap run completed -- 16 IP addresses (2 hosts up) scanned in 0.991 seconds

WHERE IS 192.168.0.6 ??
Why can't nmap just do its job..!
damn!

 
  


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
Trying to get SAMBA working "Unable to find any workgroups in your local network." shodekiagari Linux - Networking 1 07-08-2005 01:32 PM
(SuSE 9.1 Pro) - Unable to find any workgroups in your local network poqonos Linux - Networking 0 09-15-2004 08:35 AM
(SuSE 9.1) Unable to find any workgroups in your local network frank-01 Linux - Networking 13 09-06-2004 05:44 PM
Find IP's in use in a particular block kegwell Linux - Networking 1 07-14-2004 05:22 AM
Need program to find specific IP's from a list cjdock Programming 20 12-17-2003 09:08 AM


All times are GMT -5. The time now is 03:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration