Specifications
194 Chapter 8. Command Reference
PING
This command sends an echo message, available within the TCP/IP protocol suite. The echo message is sent to a
remote node and returned in order to test connectivity to the remote node. It is particularly useful for locating
connection problems on a network.
A status message is issued for each echo message sent.
You cannot ping your own LAN address; you can ping your own WAN address.
To fit the echo message into one ATM cell in routing mode, set the length of user data down to 0 bytes (-s 0 or -l
0).
Note: To terminate the ping before it ends, press control-c.
-c count Number of packets sent (from 1 to 2000000000). The default is 5 packets.
-i wait Wait period between packets in seconds (from 1 to 10). The default is 1 second.
-s size Packet data length in bytes (from 0 to 1648). The default is 56 bytes.
-l size Same as -s size.
-I srcaddr Source IP address contained in the echo message (4 decimals separated by periods). Use this
option to force packets into a tunnel or to force use of the management address as the source
address.
ipaddr IP address (4 decimals separated by periods).
Examples:
The followng command requests 2 echo messages sent 7 seconds apart with a packet length of 34 bytes. The
messages are sent to IP address 192.168.254.2.
# ping -c 2 -i 7 -s 34 192.168.254.2
ping: reply from 192.168.254.2: bytes=34 (data), time<5 ms
ping: reply from 192.168.254.2: bytes=34 (data), time<5 ms
ping: packets sent 2, packets received 2
The following command sends packets with the source IP address 192.168.254.254 to the IP address
192.4.210.122. Default values are used for the other options.
ping -I 192.168.254.254 192.4.210.122
The following command uses management address 192.168.1.2 as the source address when pinging destination
address 192.168.100.100.
ping -I 192.168.1.2 192.168.100.100
Example:
mlp summary
ping [-c count] [-i wait] [- s size (or -l size)] [-I srceaddr] <ipaddr>