Testing the path between the switch and another device on an IP network

The ping test uses ICMP echo requests and ICMP echo replies to determine if another device is alive. It also measures the amount of time it takes to receive a reply from the specified destination. The ping command has several extended commands that allow advanced checking of destination availability.

Syntax:


ping {<ip-address | hostname | switch-num>} [repetitions <1-10000>] [timeout <1-60>] [{source <ip-address> | <vlan-id>}] [data-size <0-65471>] [data-fill <0-1024>]

ping6 {<ip-address | hostname | [switch-num>]} [repetitions <1-10000>] [timeout <1-60>] [{source <ip-address> | <vlan-id>}] [data-size <0-65471>] [data-fill <0-1024>]

Sends ICMP echo requests to determine if another device is alive.

{< ip-address | hostname >}

Target IP address or hostname of the destination node being pinged

repetitions <1-10000>

Number of ping packets sent to the destination address.

Default: 1

timeout <1-60>

Timeout interval in seconds; the ECHO REPLY must be received before this time interval expires for the ping to be successful.

Default: 5

source {<ip-addr | hostname>}

Source IP address or hostname. The source IP address must be owned by the router. If a VLAN is specified, the IP address associated with the specified VLAN is used.

data-size <0-65471>

Size of packet sent.

Default: 0 (zero)

data-fill <0-1024>

The data pattern in the packet.

Default: Zero length string

Ping tests

switch# ping 10.10.10.10
10.10.10.10 is alive, time = 15 ms

switch# ping 10.10.10.10 repetitions 3
10.10.10.10 is alive, iteration 1, time = 15 ms
10.10.10.10 is alive, iteration 1, time = 15 ms
10.10.10.10 is alive, iteration 1, time = 15 ms

switch# ping 10.10.10.10 timeout 2
10.10.10.10 is alive, time = 10 ms

switch# ping 10.11.12.13
The destination address is unreachable.