Puedes hacerlo de la siguiente forma
for i in {30..35}; do ping -c1 172.20.100.$i; done[root@admin ~]# for i in {30..35}; do ping -c1 172.20.100.$i;done
PING 172.20.100.30 (172.20.100.30) 56(84) bytes of data.
64 bytes from 172.20.100.30: icmp_seq=0 ttl=62 time=1.91 ms
--- 172.20.100.30 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.913/1.913/1.913/0.000 ms, pipe 2
PING 172.20.100.31 (172.20.100.31) 56(84) bytes of data.
64 bytes from 172.20.100.31: icmp_seq=0 ttl=62 time=1.59 ms
--- 172.20.100.31 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.596/1.596/1.596/0.000 ms, pipe 2
PING 172.20.100.32 (172.20.100.32) 56(84) bytes of data.
64 bytes from 172.20.100.32: icmp_seq=0 ttl=62 time=2.46 ms
--- 172.20.100.32 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.467/2.467/2.467/0.000 ms, pipe 2
PING 172.20.100.33 (172.20.100.33) 56(84) bytes of data.
64 bytes from 172.20.100.33: icmp_seq=0 ttl=62 time=2.10 ms
--- 172.20.100.33 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.100/2.100/2.100/0.000 ms, pipe 2
PING 172.20.100.34 (172.20.100.34) 56(84) bytes of data.
64 bytes from 172.20.100.34: icmp_seq=0 ttl=62 time=1.41 ms
--- 172.20.100.34 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.415/1.415/1.415/0.000 ms, pipe 2
PING 172.20.100.35 (172.20.100.35) 56(84) bytes of data.
From 10.8.0.2 icmp_seq=0 Destination Host Unreachable
No hay comentarios:
Publicar un comentario
Te agradezco tus comentarios. Te esperamos de vuelta.