« Le système d'exploitation GNU-Linux/Configuration du réseau » : différence entre les versions

Contenu supprimé Contenu ajouté
→‎ping : mise en page
Ligne 313 :
...
''CTRL-c pour arreter''
 
$ ping -c 2 google.fr
PING google.fr (216.239.59.104) 56(84) bytes of data.
64 bytes from 216.239.59.104: icmp_seq=1 ttl=236 time=43.6 ms
64 bytes from 216.239.59.104: icmp_seq=2 ttl=236 time=44.6 ms
 
--- google.fr ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 5104ms
rtt min/avg/max/mdev = 43.643/44.164/44.685/0.521 ms
 
 
Si l'ordinateur est injoignable, on n'obtiendra pas de réponse à nos packets ICMP :
 
$ ping pc235
PING pc235.mondomaine.fr (192.168.30.235) 56(84) bytes of data.
Ligne 335 ⟶ 324 :
 
L'option '''-c''' de la commande '''ping''' permet d'indiquer le nombre de packets à envoyer :
 
$ ping -c 2 google.fr
PING google.fr (216.239.59.104) 56(84) bytes of data.
64 bytes from 216.239.59.104: icmp_seq=1 ttl=236 time=43.6 ms
64 bytes from 216.239.59.104: icmp_seq=2 ttl=236 time=44.6 ms
 
--- google.fr ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 5104ms
rtt min/avg/max/mdev = 43.643/44.164/44.685/0.521 ms
 
=== traceroute ===