Chapter 4: Utility Commands 217
The following are examples of the CLI command.
IPv4 ping success:
(CN1610) #ping 10.254.2.160 count 3 interval 1 size 255
Pinging 10.254.2.160 with 255 bytes of data:
Received response for icmp_seq = 0. time = 275268 usec
Received response for icmp_seq = 1. time = 274009 usec
Received response for icmp_seq = 2. time = 279459 usec
----10.254.2.160 PING statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (msec) min/avg/max = 274/279/276
IPv6 ping success
(CN1610) #ping 2001::1
Pinging 2001::1 with 64 bytes of data:
Send count=3, Receive count=3 from 2001::1
Average round trip time = 3.00 ms
source Use the source parameter to specify the source
IP/IPv6 address or interface to use when sending the
Echo requests packets.
hostname
Use the hostname parameter to resolve to an IPv4
or IPv6 address. The ipv6 keyword is specified to
resolve the hostname to IPv6 address. The IPv4
address is resolved if no keyword is specified.
ipv6 The optional keyword ipv6 can be used before the
ipv6-address or hostname argument. Using the
ipv6 optional keyword before hostname tries to
resolve it directly to the IPv6 address. Also used for
pinging a link-local IPv6 address.
interface Use the
interface keyword to ping a link-local
IPv6 address over an interface.
link-local-
address
The link-local IPv6 address to ping over an
interface.
Parameter Description