Network Discovery – Linux

Basic Ping Scan

 

 

Bash for loop:

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

A screen shot of a computer

Description automatically generated

Note: In this example I saved the syntax in a file and made it executable and ran the script: “./pingscan.sh”.