jump to navigation

Find out what IPs are on your subnet with nmap November 5, 2010

Posted by Tournas Dimitrios in Linux.
trackback

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 .

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s