Rangsiman Ketkaew

Ph.D. Student in Computational Chemistry and Machine Learning at UZH

Posted by on

Category : Linux   server

Table of Content


Scan IP address using command line

Nmap is a free and open-source security scanner, originally written by Gordon Lyon, used to discover hosts and services on a computer network, thus building a “map” of the network. Obviously, Nmap or nmap can be used to scan IP address of your HPC cluster network.

  1. Install nmap package The following commands to install nmap on RHEL-based and Ubuntu, respectively.
sudo yum install nmap
sudo apt-get install nmap
  1. Check version
nmap --version
  1. Scan IP address
  • For nmap version 6.x or higher
nmap -sn 192.168.1.1/4

This will scan from 192.168.1.1 to 192.168.1.4

  • For nmap version 5.x or lower
nmap -sP 192.168.1.1/4

This will scan from 192.168.1.1 to 192.168.1.4

More details of nmap can be found on its official website: htpps://www.nmap.org