You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
for i in `seq 1 254`
do
if ping -c 2 -W 2 192.168.0.$i >/dev/null 2>/dev/null
then
echo "192.168.0.$i 是通的."
else
echo "192.168.0.$i 不通."
fi
done