# ping - [Command Function](#section119672573385) - [Syntax](#section869419010390) - [Parameters](#section9877183173918) - [Usage](#section1097046193914) - [Example](#section14564129113911) - [Output](#section1621732891215) ## Command Function This command is used to test an IPv4 network connection. ## Syntax ping_ _\[_-n cnt_\] \[_-w interval_\] \[_-l data\_len_\]_ _ ping \[_-t_\] \[_-w interval_\] __ ping _-k_ ## Parameters **Table 1** Parameter description

Parameter

Description

Value Range

IP

Specifies the IPv4 address whose network connectivity is to be tested.

N/A

-n cnt

Specifies the number of execution times. If this parameter is not specified, the default value is 4.

1-65535

-w interval

Specifies the interval (in ms) between two ping packets.

>0

-l data_len

Specifies the data length of the ICMP echo request packet, excluding the ICMP packet header.

0-65500

-t

Specifies a permanent ping thread, which will be killed until the ping -k command is executed.

N/A

-k

Kills the ping thread and stops the ping operation.

N/A

## Usage - Run the **ping** command by setting a destination IP address to check whether the network connection to the destination IP address is normal. - If the destination IP address is unreachable, the system displays a message indicating that the request times out. - If no route is available to the destination IP address, an error message is displayed. - This command can be used only after the TCP/IP protocol stack is enabled. ## Example Run **ping 192.168.1.10**. ## Output **Figure 1** Output of pinging the IP address of the TFTP server ![](figure/snipaste_2021-01-26_10-38-58-26.png)