Difference between revisions of "Nmap"

From DevOps Notebook
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
<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'