Reference Guide

Table Of Contents
-i interval (Optional) Enter the interval, in seconds, to wait between sending each packet
(default 1 second).
-I interface-address (Optional) Enter the source interface address (with no spaces):
For a physical Ethernet interface, enter ethernetnode/slot/port; for example,
ethernet1/1/1.
For a VLAN interface, enter vlanvlan-id; for example, vlan10.
For a loopback interface, enter loopbackid; for example, loopback1.
For a port-channel interface, enter port-channelchannel-id; for example, port-
channel1.
-l preload (Optional) Enter the number of packets that ping sends before waiting for a reply.
Only a super-user may preload more than 3.
-L (Optional) Suppress the loopback of multicast packets for a multicast target address.
-m mark (Optional) Tags the packets sent to ping a remote device (use with policy routing).
-M pmtudisc_option (Optional) Enter the path MTU (PMTU) discovery strategy:
do prevents fragmentation, including local.
want performs PMTU discovery and fragments large packets locally.
dont does not set the Dont Fragment (DF) flag.
-p pattern (Optional) Enter up to 16 pad bytes to fill out the packet you send to diagnose
data-related problems in the network (for example, -p ff fills the sent packet with all 1s.
-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 buffers 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
option tsonly (only timestamps), tsandaddr (timestamps and addresses) or tsprespec
host1 [host2 [host3 [host4]]] (timestamp pre-specified 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 affects the
time-out only if there is no response, otherwise ping waits for two round-trip times (RTTs).
hop1 ... (Optional) Enter the IPv6 addresses of the pre-specified hops for the ping packet to take.
target Enter the IPv6 destination address in A:B::C:D format, where you are testing connectivity.
Default
Not configured
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 IPv6 and ICMP header, followed by a time value and a
number of ''pad'' bytes used to fill out the packet. A pingv6 operation sends a packet to a specified IPv6
address and then measures the time it takes to get a response from the address or device.
Example
OS10# ping6 20::1
PING 20::1(20::1) 56 data bytes
64 bytes from 20::1: icmp_seq=1 ttl=64 time=2.07 ms
64 bytes from 20::1: icmp_seq=2 ttl=64 time=2.21 ms
64 bytes from 20::1: icmp_seq=3 ttl=64 time=2.37 ms
64 bytes from 20::1: icmp_seq=4 ttl=64 time=2.10 ms
^C
--- 20::1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 2.078/2.194/2.379/0.127 ms
Supported
Releases
10.2.0E or later
776 Troubleshoot OS10