Difference between revisions of "Nmap"

From DevOps Notebook
(Created page with "=== Scan network for free ip address in a range === <pre> # nmap -sP -PR 10.5.12.0/24 </pre>")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Scan network for free ip address in a range ===
+
== Scan network for used ip address in a range ==
 
<pre>
 
<pre>
# nmap -sP -PR 10.5.12.0/24
+
$ nmap -sP -PR 10.5.12.0/24
 +
</pre>
 +
== Find unused IP in subnet with nmap ==
 +
<pre>
 +
$ nmap -v -sn -n 10.5.12.0/24 |grep 'host down'
 
</pre>
 
</pre>

Latest revision as of 11:53, 10 March 2021

Scan network for used ip address in a range

$ nmap -sP -PR 10.5.12.0/24

Find unused IP in subnet with nmap

$ nmap -v -sn -n 10.5.12.0/24 |grep 'host down'