Ping Discovery

Brandon Rozek

February 2, 2020

Plugging in a device into a network with DHCP will often result in you not knowing what the ip is. If you don’t have easy access to the DHCP server, then one way to see what ip addresses are on the network is to do a ping scan.

Please make sure that this is either your home network or that you have permission before doing a scan.

First you’ll need to know the subnet that you are working off of.

ip addr show

You might get something like the following

2: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 96:25:48:13:62:02 brd ff:ff:ff:ff:ff:ff
    inet brd scope global dynamic noprefixroute wlan0

Right after inet note the The /24 subnet means that the last number changes. We can replace our last number then with zero and start the ping scan.

nmap -sn