Function Description: detects the host.
Syntax: ping [-dfnqrrv] [-C <Number of completions>] [-I <interval seconds>] [-I <Network Interface>] [-L <preload>] [-P <template style>] [-S <packet size>] [-T <survival value>] [host name or IP address]
Note: When the ping command is executed, the ICMP transmission protocol will be used to send a request response. If the network function of the remote host is normal, the system will return the response information, so that the host operates normally.
Parameters:
-D: Use the so_debug function of socket.
-C <Number of completions> set the number of completed requests.
-F limit detection.
-I <interval seconds> specifies the interval between sending and receiving information.
-I <Network Interface> use the specified network interface to send data packets.
-L <preload> sets the data packet that is sent before the request information is sent.
-N: only numbers are output.
-P <template style> sets the template style for filling data packets.
-Q does not display the instruction execution process, except for the information at the beginning and end.
-R ignores common routing tables and directly sends data packets to the remote host.
-R records the routing process.
-S <packet size> sets the packet size.
-T <survival value> sets the TTL value of the survival value.
-V displays the instruction execution process in detail.