Comandos de la terminal/ping

De WikiCabal
Saltar a: navegación, buscar

ping

ping -h

[rrc@tanio ~]$ ping -h
Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
            [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
            [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
            [-w deadline] [-W timeout] [hop1 ...] destination

ping -V

[rrc@tanio ~]$ ping -V
ping utility, iputils-s20121221

ping -i secs IP

[rrc@tanio ~]$ ping -i 5 www.yahoo.com
PING fd-fp3.wg1.b.yahoo.com (98.139.183.24) 56(84) bytes of data.
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=1 ttl=52 time=95.1 ms
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=2 ttl=52 time=95.7 ms
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=3 ttl=52 time=95.0 ms
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=4 ttl=52 time=95.3 ms
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=5 ttl=52 time=94.8 ms
^C
--- fd-fp3.wg1.b.yahoo.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 20021ms
rtt min/avg/max/mdev = 94.883/95.242/95.777/0.496 ms

[rrc@tanio ~]$  ping -i 0.1 www.yahoo.com
PING fd-fp3.wg1.b.yahoo.com (98.139.180.149) 56(84) bytes of data.
ping: cannot flood; minimal interval, allowed for user, is 200ms

ping 0

[rrc@tanio ~]$  ping 0
PING 0 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.032 ms
^C
--- 0 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.029/0.031/0.032/0.001 ms

ping -c NumPacks IP

[rrc@tanio ~]$ ping -c 5 www.google.com
PING www.google.com (189.247.152.178) 56(84) bytes of data.
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=1 ttl=61 time=14.7 ms
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=2 ttl=61 time=16.8 ms
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=3 ttl=61 time=15.7 ms
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=4 ttl=61 time=13.4 ms
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=5 ttl=61 time=16.1 ms

--- www.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 13.463/15.386/16.863/1.182 ms

ping -c 1 IP

[root@tanio ~]# ping -c 1 www.cfe.gob.mx
PING r833g.x.incapdns.net (192.230.66.220) 56(84) bytes of data.
64 bytes from 192.230.66.220.ip.incapdns.net (192.230.66.220): icmp_seq=1 ttl=57 time=44.1 ms

--- r833g.x.incapdns.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 44.189/44.189/44.189/0.000 ms

ping -c NumPacks -q IP

[root@tanio ~]# ping -c 5 -q www.cfe.gob.mx 
PING r833g.x.incapdns.net (192.230.66.220) 56(84) bytes of data.

--- r833g.x.incapdns.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 43.972/44.592/45.016/0.464 ms

ping -f IP

[rrc@tanio ~]$ ping -f localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
ping: cannot flood; minimal interval, allowed for user, is 200ms
[rrc@tanio ~]$ su -
Password: 
[root@tanio ~]# ping -f localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
^C 
--- localhost.localdomain ping statistics ---
311656 packets transmitted, 311656 received, 0% packet loss, time 5133ms
rtt min/avg/max/mdev = 0.002/0.003/1.075/0.005 ms, ipg/ewma 0.016/0.003 ms

ping -s NumBytes IP

[root@tanio ~]# ping -s 123 -c 5 www.yahoo.com
PING fd-fp3.wg1.b.yahoo.com (98.139.180.149) 123(151) bytes of data.
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=1 ttl=54 time=95.3 ms
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=2 ttl=54 time=95.2 ms
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=3 ttl=54 time=95.5 ms
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=4 ttl=54 time=147 ms
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=5 ttl=54 time=95.7 ms

--- fd-fp3.wg1.b.yahoo.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 95.283/105.807/147.169/20.684 ms