http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/ping&feed=atom&action=history
Comandos de la terminal/ping - Historial de revisiones
2024-03-29T14:17:45Z
Historial de revisiones para esta página en el wiki
MediaWiki 1.32.1
http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/ping&diff=128448&oldid=prev
Rrc en 18:47 15 abr 2017
2017-04-15T18:47:43Z
<p></p>
<p><b>Página nueva</b></p><div>__NOTOC__<br />
* [[:#ping -h| ping -h]]<br />
* [[:#ping -V| ping -V]]<br />
* [[:#ping -i secs IP| ping -i secs IP]]<br />
* [[:#ping 0| ping 0]]<br />
* [[:#ping -c NumPacks IP| ping -c NumPacks IP]]<br />
* [[:#ping -c 1 IP| ping -c 1 IP]]<br />
* [[:#ping -c NumPacks -q IP| ping -c NumPacks -q IP]]<br />
* [[:#ping -f IP| ping -f IP]]<br />
* [[:#ping -s NumBytes IP| ping -s NumBytes IP]]<br />
<br />
== ping ==<br />
=== ping -h ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[rrc@tanio ~]$ ping -h<br />
Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]<br />
[-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]<br />
[-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]<br />
[-w deadline] [-W timeout] [hop1 ...] destination<br />
</syntaxhighlight><br />
<br />
=== ping -V ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[rrc@tanio ~]$ ping -V<br />
ping utility, iputils-s20121221<br />
</syntaxhighlight><br />
<br />
=== ping -i secs IP ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[rrc@tanio ~]$ ping -i 5 www.yahoo.com<br />
PING fd-fp3.wg1.b.yahoo.com (98.139.183.24) 56(84) bytes of data.<br />
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=1 ttl=52 time=95.1 ms<br />
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=2 ttl=52 time=95.7 ms<br />
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=3 ttl=52 time=95.0 ms<br />
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=4 ttl=52 time=95.3 ms<br />
64 bytes from ir2.fp.vip.bf1.yahoo.com (98.139.183.24): icmp_seq=5 ttl=52 time=94.8 ms<br />
^C<br />
--- fd-fp3.wg1.b.yahoo.com ping statistics ---<br />
5 packets transmitted, 5 received, 0% packet loss, time 20021ms<br />
rtt min/avg/max/mdev = 94.883/95.242/95.777/0.496 ms<br />
<br />
[rrc@tanio ~]$ ping -i 0.1 www.yahoo.com<br />
PING fd-fp3.wg1.b.yahoo.com (98.139.180.149) 56(84) bytes of data.<br />
ping: cannot flood; minimal interval, allowed for user, is 200ms<br />
</syntaxhighlight><br />
<br />
=== ping 0 ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[rrc@tanio ~]$ ping 0<br />
PING 0 (127.0.0.1) 56(84) bytes of data.<br />
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.029 ms<br />
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.032 ms<br />
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.032 ms<br />
^C<br />
--- 0 ping statistics ---<br />
3 packets transmitted, 3 received, 0% packet loss, time 1999ms<br />
rtt min/avg/max/mdev = 0.029/0.031/0.032/0.001 ms<br />
</syntaxhighlight><br />
<br />
=== ping -c NumPacks IP ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[rrc@tanio ~]$ ping -c 5 www.google.com<br />
PING www.google.com (189.247.152.178) 56(84) bytes of data.<br />
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=1 ttl=61 time=14.7 ms<br />
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=2 ttl=61 time=16.8 ms<br />
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=3 ttl=61 time=15.7 ms<br />
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=4 ttl=61 time=13.4 ms<br />
64 bytes from ext-189-247-152-178.uninet.net.mx (189.247.152.178): icmp_seq=5 ttl=61 time=16.1 ms<br />
<br />
--- www.google.com ping statistics ---<br />
5 packets transmitted, 5 received, 0% packet loss, time 4006ms<br />
rtt min/avg/max/mdev = 13.463/15.386/16.863/1.182 ms<br />
</syntaxhighlight><br />
<br />
=== ping -c 1 IP ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[root@tanio ~]# ping -c 1 www.cfe.gob.mx<br />
PING r833g.x.incapdns.net (192.230.66.220) 56(84) bytes of data.<br />
64 bytes from 192.230.66.220.ip.incapdns.net (192.230.66.220): icmp_seq=1 ttl=57 time=44.1 ms<br />
<br />
--- r833g.x.incapdns.net ping statistics ---<br />
1 packets transmitted, 1 received, 0% packet loss, time 0ms<br />
rtt min/avg/max/mdev = 44.189/44.189/44.189/0.000 ms<br />
</syntaxhighlight><br />
<br />
=== ping -c NumPacks -q IP ===<br />
<br />
<syntaxhighlight lang="bash">[root@tanio ~]# ping -c 5 -q www.cfe.gob.mx <br />
PING r833g.x.incapdns.net (192.230.66.220) 56(84) bytes of data.<br />
<br />
--- r833g.x.incapdns.net ping statistics ---<br />
5 packets transmitted, 5 received, 0% packet loss, time 4006ms<br />
rtt min/avg/max/mdev = 43.972/44.592/45.016/0.464 ms<br />
</syntaxhighlight><br />
<br />
=== ping -f IP ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[rrc@tanio ~]$ ping -f localhost<br />
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.<br />
ping: cannot flood; minimal interval, allowed for user, is 200ms<br />
[rrc@tanio ~]$ su -<br />
Password: <br />
[root@tanio ~]# ping -f localhost<br />
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.<br />
^C <br />
--- localhost.localdomain ping statistics ---<br />
311656 packets transmitted, 311656 received, 0% packet loss, time 5133ms<br />
rtt min/avg/max/mdev = 0.002/0.003/1.075/0.005 ms, ipg/ewma 0.016/0.003 ms<br />
</syntaxhighlight><br />
<br />
=== ping -s NumBytes IP ===<br />
<br />
<syntaxhighlight lang="bash"><br />
[root@tanio ~]# ping -s 123 -c 5 www.yahoo.com<br />
PING fd-fp3.wg1.b.yahoo.com (98.139.180.149) 123(151) bytes of data.<br />
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=1 ttl=54 time=95.3 ms<br />
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=2 ttl=54 time=95.2 ms<br />
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=3 ttl=54 time=95.5 ms<br />
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=4 ttl=54 time=147 ms<br />
131 bytes from ir1.fp.vip.bf1.yahoo.com (98.139.180.149): icmp_seq=5 ttl=54 time=95.7 ms<br />
<br />
--- fd-fp3.wg1.b.yahoo.com ping statistics ---<br />
5 packets transmitted, 5 received, 0% packet loss, time 4005ms<br />
rtt min/avg/max/mdev = 95.283/105.807/147.169/20.684 ms<br />
</syntaxhighlight><br />
<br />
[[Category:Comandos de la terminal]]</div>
Rrc