Parameter details:
-IP address: set the source IP address for sending the ICMP echo request message, which must be the IP address of the local interface.
-c: count is the number of ICMP echo request messages sent, ranging from 1 to 4294967295, and the default is 5 times.
-d: Set the socket to debug mode, and default to non-debug mode.
-f: When the packet length is greater than the MTU of the interface, it will not be divided and discarded directly.
-HTTL: specifies the TTL value in the ICMP echo request message, with the range of 1-255. The default value is 255.
-I Interface Type Interface Number: specifies the type and number of the interface that sends the ICMP echo request message. When this parameter is specified, the TTL value of the message is automatically set to 1 to test the directly connected device (that is, the IP address of the device and the IP address of the specified interface are in the same network segment).
IP: Configure the device to support the IPv4 protocol. By default, the device supports the IPv4 protocol.
-n: the host parameter is directly used as the IP address, and domain name resolution is not performed; By default, the host is used as the IP address first, and if it is not an IP address, the domain name is resolved.
-p: mode is to fill bytes in the ICMP echo request message in hexadecimal format. For example,-PFF fills all messages with FF. The default filling method is to start from 0x00 1, gradually increase to 0x09, and then repeat.
Extended data:
Example:
# Address: 202.38. 160.244
& ltSysname & gt Ping 202.38. 160.244
Ping 202.38.160.244: 56: 56 data bytes, and press CTRL _ C to disconnect.
202.38. 160.244 reply: byte = 56 sequence = 1 TTL = 255 time =1ms.
202.38. 160.244 reply: byte = 56 sequence = 2 TTL = 255 time = 2 ms
202.38. 160.244 reply: byte = 56 sequence = 3 TTL = 255 time =1ms.
202.38. 160.244 reply: byte = 56 sequence = 4 TTL = 255 time = 3 ms
202.38. 160.244 reply: byte = 56 sequence = 5 TTL = 255 time = 2 ms.
-202.38. 160.244 Statistics-
5-packet transmission
Five data packets were received.
0% packet loss
Round trip minimum/average/maximum =1/2/3ms
The above information indicates that the destination host can arrive, and all probe messages sent by the source device can be responded. The shortest time, average time and longest time of message round trip are 1ms, 2ms and 3ms respectively.