2-12 Network Connectivity Test CommandsNetwork Connectivity Test CommandspingSyntaxping [ -a ip-address ] [-c count ] [ -d ] [ -f ] [ -h ttl ] [ -i interface-type interface-number ] [ ip ] [ -n ] [ - ppattern ] [ -q ] [ -s packetsize ] [ -t timeout ] [ -tos tos ] [ -v ] stringViewAny viewParameters-a ip-address: Specifies the source IP address to send ICMP ECHO-REQUEST packet. This IP addressmust be a local interface IP address.-c count: Specifies how many times the ICMP ECHO-REQUEST packet will be sent. The countargument is the times, which ranges from 1 to 4,294,967,295 and defaults to 5.-d: Specifies the socket to be in DEBUGGING mode. By default, the socket is in non-DEBUGGINGmode.-f: Specifies to discard a packet directly instead of fragmenting it if its length is greater than themaximum transmission unit (MTU) of the interface.-h ttl: Specifies the Time To Live (TTL) value of the ICMP ECHO-REQUEST packets in the range 1 to255. By default, the TTL value is 255.-i interface-type interface-number: Specifies the ICMP echo request sending interface by its type andnumber. With the interface specified, the TTL of packets are set to 1 automatically to test thedirectly-connected device (the IP address of the device is in the same network segment with that of theinterface).ip: Specifies the device to support IPv4. By default, the device supports IPv4.-n: Specifies to directly regard the host argument as an IP address without performing domain nameresolution. By default, the host argument is first regarded as an IP address; if it is not an IP address,domain name resolution is performed.-p pattern: Specifies the padding byte pattern of the ICMP ECHO-REQUEST packets. The patternargument is a byte in hexadecimal. For example, -p ff fills a packet with all ffs. By default, the system fillsa packet with 0x01, 0x02, and so on, until 0x09; then it repeats this procedure from 0x01 again.-q: Specifies to display only the statistics without the details. By default, all the information including thedetails and statistics will be displayed.-s packetsize: Specifies the size (in bytes) of each ICMP ECHO-REQUEST packet (excluding the IPand ICMP headers). The packetsize argument ranges from 20 to 32,000 and defaults to 56 bytes.