ping — Verify network connectivity
ping [-v ] [-i
|-v||Boolean||Be verbose, displaying information about each packet sent.||quiet|
|-n ||Number||Controls the number of packets to be sent.||10|
|-i ||Numeric IP or DNS name||The IP address RedBoot should use.||Value set by ip_address|
|-h ||Numeric IP or DNS name||The IP address of the host to contact.||none|
|-l ||Number||The length of the ICMP data payload.||64|
|-r ||Number||How fast to deliver packets, i.e. time between successive sends. A value of 0 sends packets as quickly as possible.||1000ms (1 second)|
|-t ||Number||How long to wait for the round-trip to complete, specified in milliseconds.||1000ms (1 second)|
The ping command checks the connectivity of the local network by sending special (ICMP) packets to a specific host. These packets should be automatically returned by that host. The command will indicate how many of these round-trips were successfully completed.
Test connectivity to host 192.168.1.101.
ping -h 192.168.1.101Network PING - from 192.168.1.31 to 192.168.1.101 PING - received 10 of 10 expected
Test connectivity to host 192.168.1.101, with verbose reporting.
ping -h 192.168.1.101 -v -n 4Network PING - from 192.168.1.31 to 192.168.1.101 seq: 1, time: 1 (ticks) seq: 2, time: 1 (ticks) seq: 3, time: 1 (ticks) seq: 4, time: 1 (ticks) PING - received 10 of 10 expected
Test connectivity to a non-existent host (192.168.1.109).
ping -h 192.168.1.109 -v -n 4PING: Cannot reach server '192.168.1.109' (192.168.1.109)
|2021-10-22||eCosPro Non-Commercial Public License|