Skip to main content
Network Command Reference
Navigation
Netref
Ping IOS
OS:
CISCO:IOS-12.3
Function:
ping
ICMP
Summary
The
ping
command tests whether another host or router on the Internet is reachable.
http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-software-releases-121-mainline/12778-ping-traceroute.html
Detailed Description
The
ping
command sends an ICMP Echo Request datagram to an interface and expects an ICMP Echo Reply datagram in return.
ping
send five packets to destination by default on IOS routers and switches or the sending process will be interrupted by the Ctrl+Shift+6 keys.
It is observed that the first ICMP Echo Reply may often be timed out due to the ARP process when there is no related ARP entry at the receiver side. The default timeout on Cisco routers is 2 seconds.
Command Syntax
ping [ip | ipv6]
destinat
ion
[[source
source
] [repeat
count
] [size
size
]]
Output Characters
"!" --
The sender has received a reply.
"." --
The sender has timed out when waiting for a reply.
"U" --
The sender has received a destination unreachable message.
Example
From R1 (1.1.1.1), sending
ping
messages to R2 (1.1.1.2)
R1#ping 1.1.1.2
From R1 (1.1.1.1), sending ten
ping
messages to R2 (1.1.1.2) with source IP address
R1#ping 1.1.1.2 source 1.1.1.1 repeat 10