Skip to content

Instantly share code, notes, and snippets.

@apahim
Created June 9, 2015 14:46
Show Gist options
  • Save apahim/d5bbd014308fd983a16d to your computer and use it in GitHub Desktop.
Save apahim/d5bbd014308fd983a16d to your computer and use it in GitHub Desktop.
for IP in 192.168.25.{1..255}
do
retorno=$(arping -I enp0s25 -c 1 $IP)
if echo $retorno | grep -e "Received 0 response" -e "Received 1 response" > /dev/null 2>&1
then
continue
else
echo "IP $IP Duplicado"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment