This is more of a reminder in case I need to do this again and forget how.
While setting up a VPN for a client, I neded a list of IPs on the internal network which I could use to test connectivity. Easiest way I found to find one was to scan the local network using nmap like so:
nmap -sP 10.12.34.0/24
That will scan the 256 addresses available under 10.12.34.NN and shoot back a list with which hosts responded to the ping and some other (possibly) helpful info. Here’s what the output looks like:
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-01-19 15:39 PST
Host 10.12.34.2 appears to be up.
MAC Address: 00:1E:2A:BF:54:4B (Unknown)
Host 10.12.34.70 appears to be up.
MAC Address: 00:14:51:0D:26:5E (Apple Computer)
Host 10.12.34.76 appears to be up.
MAC Address: 00:1E:0B:06:A2:DB (Unknown)
Host 10.12.34.100 appears to be up.
MAC Address: 00:0A:9D:06:28:49 (King Young Technology Co.)
Host 10.12.34.102 appears to be up.
MAC Address: 00:0A:E4:86:81:1C (Wistron)
Host 10.12.34.134 appears to be up.
MAC Address: 00:04:4B:06:F0:15 (Nvidia)
Host 10.12.34.138 appears to be up.
MAC Address: 00:04:F2:14:21:7A (Polycom)
Host 10.12.34.139 appears to be up.
MAC Address: 00:30:48:63:81:80 (Supermicro Computer)
Host 10.12.34.142 appears to be up.
MAC Address: 00:1C:C0:64:CE:8F (Unknown)
Host 10.12.34.254 appears to be up.
MAC Address: 00:04:F2:01:C8:5D (Polycom)
Nmap finished: 256 IP addresses (34 hosts up) scanned in 23.182 seconds




