Networking Forums

Networking Forums > Computer Networking > Linux Networking > Scan network for IP addresses

Reply
Thread Tools Display Modes

Scan network for IP addresses

 
 
Zoomiest
Guest
Posts: n/a

 
      03-28-2009, 12:57 PM
What is the CL syntax for scanning my LAN and listing the active IP
addresses?
I am using Ubuntu 8.10 on the servers and my desktop.
 
Reply With Quote
 
 
 
 
Gang Greene
Guest
Posts: n/a

 
      03-28-2009, 02:37 PM
Zoomiest wrote:

> What is the CL syntax for scanning my LAN and listing the active IP
> addresses?
> I am using Ubuntu 8.10 on the servers and my desktop.


Google for nmap
 
Reply With Quote
 
Dan C
Guest
Posts: n/a

 
      03-28-2009, 05:48 PM
On Sat, 28 Mar 2009 06:57:33 -0700, Zoomiest wrote:

> What is the CL syntax for scanning my LAN and listing the active IP
> addresses?
> I am using Ubuntu 8.10 on the servers and my desktop.


nmap -sP 192.168.1.*

Substitute whatever network numbering scheme you are using on the LAN...


--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Need help?: http://brandybuck.site40.net/pics/ubuntu.jpg
The Usenet Improvement Project: http://improve-usenet.org
Ahhhhhhhh!: http://brandybuck.site40.net/pics/relieve.jpg
 
Reply With Quote
 
Tornado
Guest
Posts: n/a

 
      03-29-2009, 09:31 AM
On Mar 28, 2:48*pm, Dan C <youmustbejok...@lan.invalid> wrote:
> On Sat, 28 Mar 2009 06:57:33 -0700, Zoomiest wrote:
> > What is the CL syntax for scanning my LAN and listing the active IP
> > addresses?
> > I am using Ubuntu 8.10 on the servers and my desktop.

>
> nmap -sP 192.168.1.*
>
> Substitute whatever network numbering scheme you are using on the LAN...
>
> --
> "Ubuntu" -- an African word, meaning "Slackware is too hard for me".
> Need help?: *http://brandybuck.site40.net/pics/ubuntu.jpg
> The Usenet Improvement Project:http://improve-usenet.org
> Ahhhhhhhh!: *http://brandybuck.site40.net/pics/relieve.jpg


Hi, i think if you have firewall on your lan's pc that maybe you
should use "arping", i don't known if you can,as for nmap, define a
network scheme, i usually use a script for pass ip addresses to
arping.

 
Reply With Quote
 
Mark Hobley
Guest
Posts: n/a

 
      03-30-2009, 12:08 AM
Maxwell Lol <(E-Mail Removed)> wrote:

> ping -b 192.168.1.255 (or whatever the broadcast address)


Hmmm, that sounded interesting, but I tried it here and absolutely nothing
replied.

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

 
Reply With Quote
 
Allodoxaphobia
Guest
Posts: n/a

 
      03-30-2009, 02:56 PM
On Mon, 30 Mar 2009 07:27:25 -0400, Maxwell Lol wrote:
> (E-Mail Removed) (Mark Hobley) writes:
>
>> Maxwell Lol <(E-Mail Removed)> wrote:
>>
>>> ping -b 192.168.1.255 (or whatever the broadcast address)

>>
>> Hmmm, that sounded interesting, but I tried it here and absolutely nothing
>> replied.

>
> It worked for me. You might have to be superuser, and you have to get
> the broadcast address correct.


Winderz boxen do not respond to flood pinging -- atleast XP doesn't.
 
Reply With Quote
 
Joe Beanfish
Guest
Posts: n/a

 
      03-30-2009, 05:15 PM
Maxwell Lol wrote:
> (E-Mail Removed) (Mark Hobley) writes:
>
>> Maxwell Lol <(E-Mail Removed)> wrote:
>>
>>> ping -b 192.168.1.255 (or whatever the broadcast address)

>> Hmmm, that sounded interesting, but I tried it here and absolutely nothing
>> replied.

>
> It worked for me. You might have to be superuser, and you have to get
> the broadcast address correct.
>
> As the manual page says
>
> Flood pinging is not recommended in general, and flood pinging the
> broadcast address should only be done under very controlled condi‐
> tions.
>
> So there may be a policy of some sort (in the source code?) to disable this.


-b is broadcast ping, not flood ping. Many (most?) systems ignore broadcast
pings these days.
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      03-30-2009, 09:08 PM
Maxwell Lol <(E-Mail Removed)> writes:

> (E-Mail Removed) (Mark Hobley) writes:
>
>> Maxwell Lol <(E-Mail Removed)> wrote:
>>
>>> ping -b 192.168.1.255 (or whatever the broadcast address)

>>
>> Hmmm, that sounded interesting, but I tried it here and absolutely nothing
>> replied.

>
> It worked for me. You might have to be superuser, and you have to get
> the broadcast address correct.
>
> As the manual page says
>
> Flood pinging is not recommended in general, and flood pinging the
> broadcast address should only be done under very controlled condi‐
> tions.
>
> So there may be a policy of some sort (in the source code?) to disable this.


/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts -- if it's 0 you
respond to broadcast pings, if it's 1 you don't. By default (on my
debian boxes) it's 1.

So, depending on what the OP is really trying to do, this isn't
something he can rely on.
 
Reply With Quote
 
Eric Pozharski
Guest
Posts: n/a

 
      03-30-2009, 09:19 PM
On 2009-03-30, Mark Hobley <(E-Mail Removed)> wrote:
> Maxwell Lol <(E-Mail Removed)> wrote:
>
>> ping -b 192.168.1.255 (or whatever the broadcast address)

>
> Hmmm, that sounded interesting, but I tried it here and absolutely nothing
> replied.


ICMP settings
-------------

icmp_echo_ignore_all and icmp_echo_ignore_broadcasts
----------------------------------------------------

Turn on (1) or off (0), if the kernel should ignore all ICMP
ECHO requests, or just those to broadcast and multicast addresses.

Please note that if you accept ICMP echo requests with a
broadcast/multi\-cast destination address your network may
be used as an exploder for denial of service packet flooding
attacks to other hosts.

{53622:68} [0:0]$ cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
1


--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
 
Reply With Quote
 
huangpeng.work@gmail.com
Guest
Posts: n/a

 
      04-20-2009, 01:42 PM
On 3$B7n(B30$BF|(B, $B8aA0(B4:35, Maxwell Lol <nos...@com.invalid> wrote:
> Zoomiest <zoomi...@gmail.com> writes:
> > What is the CL syntax for scanning my LAN and listing the active IP
> > addresses?
> > I am using Ubuntu 8.10 on the servers and my desktop.

>
> Besides nmap, you might be able to do
> ping -b 192.168.1.255 (or whatever the broadcast address)



you can find host whose firewall is on with nmap,but ping can not do
this
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP utility to scan a range of addresses? Dennis_S Windows Networking 4 12-18-2007 12:57 PM
Need scan of Zyxel UPC MarkA Wireless Internet 0 02-12-2006 10:15 PM
sql scan Eli Milkova Windows Networking 0 09-30-2005 08:58 PM
how do i scan for a wireless network signal jake Wireless Networks 2 02-21-2005 04:24 PM
Need Help finding software to scan for Wireless Network bill Wireless Internet 1 02-14-2004 01:34 PM



1 2 3 4 5 6 7 8 9 10 11