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

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

 

I am a Senior System Administrator that work daily with Virtualization,Xenserver, Linux, IT automation, Ansible,Windows, Active Directory, Exchange and a lot more. Here you will find tips and trix from early junior, middle junior and senior to unique information of the topics I mentioned earlier. If you need help with something do not hesitate to contact me I will gladly help.

Tagged with: , , , , , , , ,