Skip to content

Instantly share code, notes, and snippets.

@jglenn9k
Created June 24, 2019 00:38
Show Gist options
  • Save jglenn9k/883042aa679600a30f444c3a6ea0d2e1 to your computer and use it in GitHub Desktop.
Save jglenn9k/883042aa679600a30f444c3a6ea0d2e1 to your computer and use it in GitHub Desktop.
Find free IPs
for i in $(seq 1 253); do x=$(arping -c 3 192.168.0.$i | awk '{ if ($0 ~ "^Unicast reply") { print $4" "$5 } }' | sort -u); [ "$x" ] && echo $x || echo 192.168.0.$i FREE; done > freeips.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment