<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Finding All Hosts On the LAN From Linux / Windows Workstation</title> <atom:link href="http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Lukas</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-67534</link> <dc:creator>Lukas</dc:creator> <pubDate>Tue, 24 Jan 2012 14:54:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-67534</guid> <description>Hi, i cant find all hosts by nmap -sP 10.6.0.0/24
I know that router Mikrotik has got IP address 10.6.0.1, hi can i found with nmap ALL hosts at subnet? Which mode of nmap I have to use for this?
Could you help me, please? Thanks a lot.
Lukas</description> <content:encoded><![CDATA[<p>Hi, i cant find all hosts by nmap -sP 10.6.0.0/24<br
/> I know that router Mikrotik has got IP address 10.6.0.1, hi can i found with nmap ALL hosts at subnet? Which mode of nmap I have to use for this?<br
/> Could you help me, please? Thanks a lot.</p><p>Lukas</p> ]]></content:encoded> </item> <item><title>By: jags</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-66497</link> <dc:creator>jags</dc:creator> <pubDate>Sun, 08 Jan 2012 07:07:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-66497</guid> <description>this is awesome</description> <content:encoded><![CDATA[<p>this is awesome</p> ]]></content:encoded> </item> <item><title>By: Rodger</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-66270</link> <dc:creator>Rodger</dc:creator> <pubDate>Mon, 02 Jan 2012 08:07:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-66270</guid> <description>Using cygwin on Windows, this did not work as expected.
It produced
192.168.1.1 UP
...
192.168.1.100 UP
...
for every IP address.
Problem is, this network is 192.168.2.1, not 192.168.1.1
Further investigation:
ping 192.168.2.1 produced a response from an IP from the ISP.
Know and Test what you are doing!</description> <content:encoded><![CDATA[<p>Using cygwin on Windows, this did not work as expected.<br
/> It produced<br
/> 192.168.1.1 UP<br
/> &#8230;<br
/> 192.168.1.100 UP<br
/> &#8230;<br
/> for every IP address.</p><p>Problem is, this network is 192.168.2.1, not 192.168.1.1</p><p>Further investigation:<br
/> ping 192.168.2.1 produced a response from an IP from the ISP.</p><p>Know and Test what you are doing!</p> ]]></content:encoded> </item> <item><title>By: Ryan Sharp</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-66019</link> <dc:creator>Ryan Sharp</dc:creator> <pubDate>Mon, 26 Dec 2011 00:31:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-66019</guid> <description>Looping in Perl just to print a sequence of numbers is really braindead.</description> <content:encoded><![CDATA[<p>Looping in Perl just to print a sequence of numbers is really braindead.</p> ]]></content:encoded> </item> <item><title>By: Stan Tkhorovsky</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-64589</link> <dc:creator>Stan Tkhorovsky</dc:creator> <pubDate>Fri, 18 Nov 2011 18:28:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-64589</guid> <description>Thanks for &#039;nast -m&#039; tip (3 years later ;) ) - liked it best.
@ lina - check out casper&#039;s comment regarding non-Linux systems</description> <content:encoded><![CDATA[<p>Thanks for &#8216;nast -m&#8217; tip (3 years later ;) ) &#8211; liked it best.</p><p>@ lina &#8211; check out casper&#8217;s comment regarding non-Linux systems</p> ]]></content:encoded> </item> <item><title>By: lina</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-60679</link> <dc:creator>lina</dc:creator> <pubDate>Wed, 13 Jul 2011 01:55:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-60679</guid> <description>How would you do this on a Mac?  I tried it and got the error -bash: seq: command not found</description> <content:encoded><![CDATA[<p>How would you do this on a Mac?  I tried it and got the error -bash: seq: command not found</p> ]]></content:encoded> </item> <item><title>By: James</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-60121</link> <dc:creator>James</dc:creator> <pubDate>Mon, 20 Jun 2011 13:58:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-60121</guid> <description>Here&#039;s a batchfile i made that pings any range of adresses:
@echo off &amp; For /L %%i in (%4,1,255) do @ping -n 1 %1.%2.%3.%%i &#124; find &quot;Received = 0&quot; &gt;nul &amp; if errorlevel 1 @echo %1.%2.%3.%%i
most of the code is to tidy the output up. Save as PINGER.bat
Type:
PINGER 192 168 0 0
**without** the dots to find the range 192.168.0.0 to 192.168.0.255
or any other address PINGER 145 233 2 0 etc
cheers</description> <content:encoded><![CDATA[<p>Here&#8217;s a batchfile i made that pings any range of adresses:</p><p>@echo off &amp; For /L %%i in (%4,1,255) do @ping -n 1 %1.%2.%3.%%i | find &#8220;Received = 0&#8243; &gt;nul &amp; if errorlevel 1 @echo %1.%2.%3.%%i</p><p>most of the code is to tidy the output up. Save as PINGER.bat</p><p>Type:<br
/> PINGER 192 168 0 0<br
/> **without** the dots to find the range 192.168.0.0 to 192.168.0.255<br
/> or any other address PINGER 145 233 2 0 etc<br
/> cheers</p> ]]></content:encoded> </item> <item><title>By: berner</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-59607</link> <dc:creator>berner</dc:creator> <pubDate>Tue, 24 May 2011 18:24:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-59607</guid> <description>Very nice, all that. Thanks guys!</description> <content:encoded><![CDATA[<p>Very nice, all that. Thanks guys!</p> ]]></content:encoded> </item> <item><title>By: rst_ack</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-55481</link> <dc:creator>rst_ack</dc:creator> <pubDate>Wed, 09 Feb 2011 19:05:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-55481</guid> <description>#arp-scan -l</description> <content:encoded><![CDATA[<p>#arp-scan -l</p> ]]></content:encoded> </item> <item><title>By: horizons</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-51470</link> <dc:creator>horizons</dc:creator> <pubDate>Wed, 08 Dec 2010 00:07:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-51470</guid> <description>smbtree -SN &#124;grep \\\\ &#124;cut -f2 &#124;cut -d&quot;\\&quot; -f3
will give a list of netbios host responding on broadcast address
(smbtree is part of the samba suite)</description> <content:encoded><![CDATA[<p>smbtree -SN |grep \\\\ |cut -f2 |cut -d&#8221;\\&#8221; -f3</p><p>will give a list of netbios host responding on broadcast address<br
/> (smbtree is part of the samba suite)</p> ]]></content:encoded> </item> <item><title>By: mr</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-49022</link> <dc:creator>mr</dc:creator> <pubDate>Wed, 25 Aug 2010 10:32:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-49022</guid> <description>check out the space after the n parameter: for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I &#124; find &quot;Reply&quot;</description> <content:encoded><![CDATA[<p>check out the space after the n parameter: for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find &#8220;Reply&#8221;</p> ]]></content:encoded> </item> <item><title>By: hotsw4p</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-48489</link> <dc:creator>hotsw4p</dc:creator> <pubDate>Sat, 24 Jul 2010 00:22:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-48489</guid> <description>i liked the nmap solution best as well, thanks Matthias for that.</description> <content:encoded><![CDATA[<p>i liked the nmap solution best as well, thanks Matthias for that.</p> ]]></content:encoded> </item> <item><title>By: nishu</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-46935</link> <dc:creator>nishu</dc:creator> <pubDate>Sun, 18 Apr 2010 21:55:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-46935</guid> <description>can anyone tell how to see the network address and system names in up in lan in linux..</description> <content:encoded><![CDATA[<p>can anyone tell how to see the network address and system names in up in lan in linux..</p> ]]></content:encoded> </item> <item><title>By: Remi Nodet</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-41914</link> <dc:creator>Remi Nodet</dc:creator> <pubDate>Thu, 04 Jun 2009 08:54:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-41914</guid> <description>Even faster (produces a little bit of confusing output in the beginning but it does the job fast):
&lt;code&gt;
for ip in $(perl -e &#039;$,=&quot;\n&quot;; print 1 .. 254;&#039;) ; do  ping -t 1 -c 1 192.168.146.$ip &gt; /dev/null &amp;&amp; echo &quot;192.168.146.$ip UP&quot; &gt;&gt; hosts.log &#124;&#124; : &amp; sleep 0.02; done; sleep 1;cat hosts.log;rm hosts.log
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Even faster (produces a little bit of confusing output in the beginning but it does the job fast):<br
/> <code><br
/> for ip in $(perl -e '$,="\n"; print 1 .. 254;') ; do  ping -t 1 -c 1 192.168.146.$ip &gt; /dev/null &amp;&amp; echo "192.168.146.$ip UP" &gt;&gt; hosts.log || : &amp; sleep 0.02; done; sleep 1;cat hosts.log;rm hosts.log<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: Johny</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-41506</link> <dc:creator>Johny</dc:creator> <pubDate>Wed, 06 May 2009 18:52:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-41506</guid> <description>Matthias, thumbs up for the nmap solution.</description> <content:encoded><![CDATA[<p>Matthias, thumbs up for the nmap solution.</p> ]]></content:encoded> </item> <item><title>By: suren</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37644</link> <dc:creator>suren</dc:creator> <pubDate>Sun, 16 Mar 2008 04:28:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37644</guid> <description>wont this command do ???
nbtscan 10.0.0.1-125
this checks all the computers whose ip address are in the range of 10.0.0.1 to 10.0.0.125 and displays only those which are ON and connected to the network !</description> <content:encoded><![CDATA[<p>wont this command do ???</p><p>nbtscan 10.0.0.1-125</p><p>this checks all the computers whose ip address are in the range of 10.0.0.1 to 10.0.0.125 and displays only those which are ON and connected to the network !</p> ]]></content:encoded> </item> <item><title>By: sg</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37589</link> <dc:creator>sg</dc:creator> <pubDate>Fri, 07 Mar 2008 16:29:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37589</guid> <description>another option is installing arpwatch.</description> <content:encoded><![CDATA[<p>another option is installing arpwatch.</p> ]]></content:encoded> </item> <item><title>By: phillip</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37587</link> <dc:creator>phillip</dc:creator> <pubDate>Fri, 07 Mar 2008 12:42:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37587</guid> <description>Using nast ?
http://netsecure.alcpress.com/nast/
nast -m
best.</description> <content:encoded><![CDATA[<p>Using nast ?</p><p><a
href="http://netsecure.alcpress.com/nast/" rel="nofollow">http://netsecure.alcpress.com/nast/</a></p><p>nast -m</p><p>best.</p> ]]></content:encoded> </item> <item><title>By: Z3n0</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37582</link> <dc:creator>Z3n0</dc:creator> <pubDate>Thu, 06 Mar 2008 10:13:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37582</guid> <description>Something wrong with prev. comment... (&lt; and &gt; char)
&lt;code&gt;
for (( ip=1 ; ip&lt;=254 ; ip++ )); do ping -c 1 -t 1 192.168.1.$ip&gt;/dev/null; [ $? -eq 0 ] &amp;&amp; echo &quot;192.168.1.$ip UP&quot; &#124;&#124; : ; done
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Something wrong with prev. comment&#8230; (&lt; and &gt; char)<br
/> <code><br
/> for (( ip=1 ; ip&lt;=254 ; ip++ )); do ping -c 1 -t 1 192.168.1.$ip&gt;/dev/null; [ $? -eq 0 ] &amp;&amp; echo "192.168.1.$ip UP" || : ; done<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: matthias</title><link>http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37580</link> <dc:creator>matthias</dc:creator> <pubDate>Thu, 06 Mar 2008 09:40:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/#comment-37580</guid> <description>If a host on your local network won&#039;t answer on a ping request you could try arping, which does an arp request.
&lt;code&gt;arping 192.168.1.1
ARPING 192.168.1.1 from 192.168.1.226 eth0
Unicast reply from 192.168.1.1 [00:01:02:xx:xx:xx]  0.668ms&lt;/code&gt;
Another method is simply using nmap:
&lt;code&gt;nmap -sP 192.168.1.0/24&lt;/code&gt;</description> <content:encoded><![CDATA[<p>If a host on your local network won&#8217;t answer on a ping request you could try arping, which does an arp request.<br
/> <code>arping 192.168.1.1<br
/> ARPING 192.168.1.1 from 192.168.1.226 eth0<br
/> Unicast reply from 192.168.1.1 [00:01:02:xx:xx:xx]  0.668ms</code></p><p>Another method is simply using nmap:<br
/> <code>nmap -sP 192.168.1.0/24</code></p> ]]></content:encoded> </item> </channel> </rss>
