master-thesis/bin/ping_ipv6_addresses.sh

18 lines
227 B
Bash
Raw Normal View History

#!/bin/sh
set -x
2019-07-28 10:10:46 +00:00
read=yes
if [ $# -ge 1 ]; then
read=""
fi
2019-07-28 10:50:54 +00:00
for addr in $(seq 1 32); do
ip=2001:db8:42::$addr
echo "Next to ping: ${ip}"
2019-07-28 10:10:46 +00:00
if [ "$read" ]; then
read dummy
fi
ping6 -c1 "$ip"
done