#Linux for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done #Windows: for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find "Reply"
#Linux for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done #Windows: for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find "Reply"