sweeping from 1 to 15:
-c: count of ping
-t: TTL option
-w: timeout -- second
bash-3.2$ for i in {1..15}; do ping -c 1 -w 1 10.0.1.$i | grep 'from'; done
64 bytes from 10.0.1.1: icmp_seq=0 ttl=255 time=184.080 ms
64 bytes from 10.0.1.12: icmp_seq=0 ttl=64 time=0.057 ms
64 bytes from 10.0.1.13: icmp_seq=0 ttl=64 time=322.238 ms
64 bytes from 10.0.1.14: icmp_seq=0 ttl=64 time=5.747 ms
Comments
Post a Comment