Last Updated : Nov 06, 2012 |

Sends ICMP packets to a target system. The ping command is useful for checking host reachability and network connectivity.

Syntax

ping host [interval [size[timeout[source_address]]]]

Parameters

Parameter

Description

Possible Values

Default Value

host

The IP address of the target system

interval

The number of seconds between successive ICMP packets

1-256

1

size

The size, in bytes, of the packet sent when pinging

22-65500

50

timeout

The timeout in seconds

1-10

source_address

IP address from which to send the ICMP packets

User level

read-only

Context

general

Example

To send test 50-byte packets to IP address 192.168.49.1 from IP address 192.168.49.4 every 3 seconds, timing out after 5 seconds:

Gxxx-001(super)# ping 192.168.49.1 3 50 5 192.168.49.4