2019-07-28 09:58:39 +00:00
|
|
|
#!/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
|
2019-07-28 09:58:39 +00:00
|
|
|
ip=2001:db8:42::$addr
|
|
|
|
echo "Next to ping: ${ip}"
|
2019-07-28 10:10:46 +00:00
|
|
|
if [ "$read" ]; then
|
|
|
|
read dummy
|
|
|
|
fi
|
2019-07-28 09:58:39 +00:00
|
|
|
ping6 -c1 "$ip"
|
|
|
|
done
|