Home How to use nmap to scan the network for live hosts CentOS/RHEL
Post
Cancel

How to use nmap to scan the network for live hosts CentOS/RHEL

This is a Junior Linux System Administrator how-to describing how you use nmap to scan for live devices within a network.

Use nmap to scan alive hosts in the network range with the command:

nmap -sP subnet/netmask
[c-johsor@sesstl168 ~]$ nmap -sP 192.168.33.0/24

Starting Nmap 5.51 ( http://nmap.org ) at 2014-03-12 22:12 CET
Nmap scan report for dlinkrouter (192.168.33.1)
Host is up (0.0023s latency).
Nmap scan report for 192.168.33.2
Host is up (0.0065s latency).
Nmap scan report for 192.168.33.130
Host is up (0.00027s latency).
Nmap done: 256 IP addresses (3 hosts up) scanned in 2.42 seconds
[c-johsor@sesstl168 ~]$

The result shows that from 256 IP addresses 3 hosts is currently up and the scan took 2.42 seconds

 

This post is licensed under CC BY 4.0 by the author.