cisco ios ping output interface code example

Example: cisco source ping from interface

R2#ping ip 1.1.1.1 ?
  <cr>

R2#conf t          
Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#int fa0/0
R2(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#^Z

R2#ping 10.0.0.1 ?
  data      specify data pattern
  df-bit    enable do not fragment bit in IP header
  repeat    specify repeat count
  size      specify datagram size
  source    specify source address or name
  timeout   specify timeout interval
  validate  validate reply data