subnet scan

bash script

for i in {1..255}; do (ping -c 1 X.X.X.${i} | grep "bytes from" &); done

nmap

nmap -sn X.X.X.1-255
nmap -sn X.X.X.0/24

Last updated