Find out what IPs are on your subnet with nmap November 5, 2010Posted by Tournas Dimitrios in Linux.
Here is a quick tip on how to find out what host IPs are on your subnet using nmap. This is useful to find out what IPs are being used or just to know how many devices are connected to the subnet.First find out if nmap is installed on your mashine with –>> rpm -qa | grep -i nmap
How to find out what IPs are being used on your subnet
# nmap -v -sP 192.168.1.0/24
You can replace the 192.168.1.0/24 address with whatever your IP and subnet is.
Also, for a cleaner output that removes the lines that tell you an IP is not used, try the following:
# nmap -v -sP 192.168.1.0/24 | grep ” up”
Find out what ports are open : #nmap -sS 192.168.1.5
A future article will go into analytic explanation of nmap and with lot of examples .