Verifies network connectivity between a source and a destination on a TCP/IP network.
The default for count is 5. The default for timeout is 1. The default for datagram-size is 56.
Note
This option applies only to IPv4.Privileged EXEC mode
This command sends a specified number of pings with configured parameters to the specified destination device.
This example pings an IPv4 destination address.
device# ping 172.16.4.80 Type Control-c to abort PING 172.16.4.80 (172.16.4.80): 56 data bytes 64 bytes from 172.16.4.80: icmp_seq=0 ttl=120 time=101.466 ms 64 bytes from 172.16.4.80: icmp_seq=1 ttl=120 time=122.914 ms 64 bytes from 172.16.4.80: icmp_seq=2 ttl=120 time=145.637 ms 64 bytes from 172.16.4.80: icmp_seq=3 ttl=120 time=170.032 ms 64 bytes from 172.16.4.80: icmp_seq=4 ttl=120 time=103.036 ms --- 172.16.4.80 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 101.466/128.617/170.032/26.188 ms
This example pings an IPv4 destination address in quiet mode.
device# ping 172.16.4.80 quiet Type Control-c to abort PING 172.16.4.80 (172.16.4.80): 56 data bytes --- 172.16.4.80 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 100.605/146.372/192.552/32.505 ms
This example pings an IPv6 destination address in numeric mode with a datagram size.
device# ping ipv6 fec0:60:69bc:92:218:8bff:fe40:1470 count 3 datagram-size 48 numeric timeout 3 Type Control-c to abort PING fec0:60:69bc:92:218:8bff:fe40:1470 (fec0:60:69bc:92:218:8bff:fe40:1470): 48 data bytes 56 bytes from fec0:60:69bc:92:218:8bff:fe40:1470: icmp_seq=0 ttl=64 time=6.356 ms 56 bytes from fec0:60:69bc:92:218:8bff:fe40:1470: icmp_seq=1 ttl=64 time=0.170 ms 56 bytes from fec0:60:69bc:92:218:8bff:fe40:1470: icmp_seq=2 ttl=64 time=0.171 ms --- fec0:60:69bc:92:218:8bff:fe40:1470 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.170/2.232/6.356/2.916 ms