master-thesis/netpfga/ping_ipv6_addresses.sh
Nico Schottelius 1534edff2b Ping until 32
2019-07-28 12:50:54 +02:00

17 lines
227 B
Bash
Executable file

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