Ping IOS

Function: 
Summary
  • The ping command tests whether another host or router on the Internet is reachable.
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] destination [[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