2.1.27. ping

Syntax

ping HOSTNAME [count <1-999999999>]

Parameter


HOSTNAME Specify IPv4/IPv6 address or domain name to ping.

count <1-999999999> Specify how many times to ping.


Default

No default value for this command.

Mode

User EXEC Privileged EXEC

Usage

Use ping command to do network ping diagnostic.

Example

This example shows how to ping remote host 192.168.1.111.

Switch# ping 192.168.1.111
PING 192.168.1.111 (192.168.1.111): 56 data bytes
64 bytes from 192.168.1.111: icmp_seq=0 ttl=128 time=10.0 ms
64 bytes from 192.168.1.111: icmp_seq=1 ttl=128 time=0.0 ms
64 bytes from 192.168.1.111: icmp_seq=2 ttl=128 time=0.0 ms
64 bytes from 192.168.1.111: icmp_seq=3 ttl=128 time=0.0 ms
--- 192.168.1.111 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.0/2.5/10.0 ms