Linux Command ping
The ping command is used to check the connectivity of the host.
Syntax:
Ping [-dfnqrRv] [-c <Number of completions>] [-I <interval seconds>] [-I <Network Interface>] [-l <preload>] [-p <data format>] [-s <packet size>] [-t <lifecycle>] Parameters:
-D: Use the SO_DEBUG function of Socket. -F limit detection: sends request information at full speed without receiving a response. Only the system administrator can use it. -N: only the number is output. If the host address does not match the name-q, the command execution process is not displayed, except for the information at the beginning and end. -R bypasses the normal route table and directly transmits data packets to the remote host on the connected network. -R records the routing process. The IP address file header can contain only nine route information. -V displays the command execution process in detail. -C <Number of completions> sets the number of completed responses. When a request is sent and a response is received, a response is completed-I <interval seconds> specifies the interval between sending and receiving information. The Unit is seconds. The default value is 1 second, note that you cannot use-I <Network Interface> with the specified network interface to send data packets-l <preload> with the parameter-f to set the data packets that are sent before sending the required information. Only the system administrator can use this parameter-p <data format> to set the data format of the filled data packet. The-s <data packet size> must be set in hexadecimal format. The default value is 56 Bytes, and the 8 Bytes ICMP file header is a total of 64 Bytes-t <lifecycle>. Set the TTL value (Time-to-Live). The value range is 1 ~ 255