
PING
LITE5200B User’s Manual, Rev. 0
Freescale Semiconductor
7-43
7.41
PING
ping
– send ICMP ECHO_REQUEST packets to network host
Ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP
ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams (``pings'') have an IP and
ICMP header, followed by a ``struct timeval'' and then an arbitrary number of ``pad'' bytes used to fill out
the packet.
Example 1
=> ping 192.168.0.1
Using FEC ETHERNET device
host 192.168.0.1 is alive
Example 2
=> ping 192.168.0.4
Using FEC ETHERNET device
ping failed; host 192.168.0.4 is not alive