xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
540 
 
Chapter 55  Ping Command List 
 
ping <ipaddr> {times <value 1-255> | timeout <sec 1-99>} 
ping6 <ipv6addr> {times <value 1-255> | size <value 1-6000> | timeout <sec 1-99>}     (EI Mode 
Only) 
 
55-1  ping 
Description 
This command is used to send Internet Control Message Protocol (ICMP) echo messages to a 
remote IP address. The remote IP address will then “echo” or return the message. This is used to 
confirm connectivity between the Switch and the remote device. 
 
Format 
ping <ipaddr> {times <value 1-255> | timeout <sec 1-99>} 
 
Parameters 
<ipaddr> - Specify the IP address of the host. 
times - (Optional) The number of individual ICMP echo messages to be sent. A value of 0 will 
send an infinite ICMP echo messages. The maximum value is 255. The default is 0, indicating 
infinity. Press the "CTRL+C” to break the ping test. 
<value 1-255> - Enter the number of individual ICMP echo messages to be sent here. This 
value must be between 1 and 255. 
timeout - (Optional) Defines the time-out period while waiting for a response from the remote 
device. A value of 1 to 99 seconds can be specified. The default is 1 second. 
<sec 1-99> - Enter the time-out period here. This value must be between 1 and 99 seconds. 
 
Restrictions 
None. 
 
Example 
To send ICMP echo message to “10.51.17.1” for 4 times: 
DGS-3120-24TC:admin# ping 10.51.17.1 times 4 
Command: ping 10.51.17.1 times 4 
 
Reply from 10.51.17.1, time<10ms 
Reply from 10.51.17.1, time<10ms 
Reply from 10.51.17.1, time<10ms 
Reply from 10.51.17.1, time<10ms 
 
Ping Statistics for 10.51.17.1 
Packets: Sent =4, Received =4, Lost =0 
 
DGS-3120-24TC:admin#