ODT Export

Table des matières

La commande ping

La commande ping permet de tester la connectivité de la machine au réseau. Autrement dit, elle permet de vérifier si une commande existe entre deux machines.

Syntaxe

  ping <adresseIP_de_la_machine_distante>
  

Ou bien, sur internet, avec une adresse URL identifiée :

  ping <adresse_url>

Exemple

$ ping 192.168.0.0
    PING 192.168.1.1 (192.168.0.0) 56(84) bytes of data.
    64 bytes from 192.168.0.0: icmp_seq=1 ttl=64 time=0.200 ms
    64 bytes from 192.168.0.0: icmp_seq=2 ttl=64 time=0.194 ms
    64 bytes from 192.168.0.0: icmp_seq=3 ttl=64 time=0.145 ms
     --- 192.168.0.0 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2000ms
    rtt min/avg/max/mdev = 0.145/0.179/0.200/0.029 ms

Option -c

Limiter le nombre de ping avec l'option -c ainsi :

$ ping -c 3 debian-facile.org
PING debian-facile.org (212.85.158.4) 56(84) bytes of data.
64 bytes from web.tuxfamily.net (212.85.158.4): icmp_seq=1 ttl=52 time=39.3 ms
64 bytes from web.tuxfamily.net (212.85.158.4): icmp_seq=2 ttl=52 time=39.2 ms
64 bytes from web.tuxfamily.net (212.85.158.4): icmp_seq=3 ttl=52 time=39.1 ms

Tout simplement LOL

Liens

 man ping

Eh eh eh ! :-)

 
commande/ping.txt · Dernière modification: 2012/12/20 03:23 par martin_mtl
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki