Reference Guide

-p pattern — (Optional) Enter up to 16 pad bytes to ll out the packet you send to diagnose data-related
problems in the network (for example, -p ff lls the sent packet with all 1’s.
-Q tos — (Optional) Enter the number of datagrams (up to 1500 bytes in decimal or hex) to set quality of
service (QoS)-related bits.
-s packetsize — (Optional) Enter the number of data bytes to send (1 to 65468, default 56).
-S sndbuf — (Optional) Set the sndbuf socket. By default, the sndbuf socket buers one packet maximum.
-t ttl — (Optional) Enter the IP time-to-live (TTL) value in seconds.
-T timestamp option — (Optional) Set special IP timestamp options. Valid values for timestamp
optiontsonly (only timestamps), tsandaddr (timestamps and addresses) or tsprespec host1
[host2 [host3 [host4]]] (timestamp pre-specied hops).
-v — (Optional) Verbose output.
-V — (Optional) Display version and exit.
-w deadline — (Optional) Enter the time-out value, in seconds, before the ping exits regardless of how
many packets are sent or received.
-W timeout — (Optional) Enter the time to wait for a response, in seconds. This setting aects the time-
out only if there is no response, otherwise ping waits for two round-trip times (RTTs).
hop1 ... (Optional) Enter the IP addresses of the pre-specied hops for the ping packet to take.
target — Enter the IP address where you are testing connectivity.
Default Not congured
Command Mode EXEC
Usage Information This command uses an ICMP ECHO_REQUEST datagram to receive an ICMP ECHO_RESPONSE from a network
host or gateway. Each ping packet has an IP and ICMP header, followed by a time value and a number of ''pad''
bytes used to ll out the packet. A ping operation sends a packet to a specied IP address and then measures the
time it takes to get a response from the address or device.
If the destination IP address is active, replies are sent back from the server including IP address, number of bytes
sent, lapse time (in milliseconds), and time to live (TTL) which is the number of hops back from the source to the
destination.
Example
OS10# ping 20.1.1.1
PING 20.1.1.1 (20.1.1.1) 56(84) bytes of data.
64 bytes from 20.1.1.1: icmp_seq=1 ttl=64 time=0.079 ms
64 bytes from 20.1.1.1: icmp_seq=2 ttl=64 time=0.081 ms
64 bytes from 20.1.1.1: icmp_seq=3 ttl=64 time=0.133 ms
64 bytes from 20.1.1.1: icmp_seq=4 ttl=64 time=0.124 ms
^C
--- 20.1.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.079/0.104/0.133/0.025 ms
Supported Releases 10.2.0E or later
ping6
Tests network connectivity to an IPv6 device.
Syntax
ping6 [vrf management] [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I
interface] [-l preload] [-m mark] [-M pmtudisc_option] [-N nodeinfo_option] [-p
pattern] [-Q tclass] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
[-w deadline] [-W timeout] destination
Parameters
vrf management — (Optional) Pings an IPv6 address in the management VRF instance.
678 Troubleshoot OS10