6.14 ping
This command is used to test for the presence of hosts on the network. This command is invoked with a destination (either a hostname or IP address).
Options
Options and option parameters that are underlined indicate that a value must be specified for that option or parameter. For example, the ping
command has the option destination
. An IP address or hostname can be specified for the destination, as in the commands ping 192.9.200.44
and ping nc.tekelec.com
. Do not enter the underlined option or parameter; enter a value for the information represented by the underlined option or parameter.
-
destination
- The destination can be either an IP address or hostname.
-
IP address
- The IP address is a TCP/IP address expressed in standard “dot notation.” IP addresses consist of the system’s network number and the machine’s unique host number. An example IP address is 192.9.200.44, where 192.9.200 is the network number and 44 is the machine’s host number.
-
hostname
- Hostname. The logical name assigned to the device with the IP address indicated.
-
Example
ping 192.9.200.44ping nc.tekelec.com
ping 192.9.200.44 -i 5 -n 2048
ping 10.254.111.21 -f -n 1480
ping 10.254.103.13 –v 1
Dependencies
The actual ping
text string must be followed by a destination (either a hostname or IP address) prior to the options.
Notes
The ping
command is executed through the pass
command.
The ‘-v’ option in the ping command is mainly used for IPSG (SLIC card) to select the Virtual Router table to ping remote end, when there are multiple IP interfaces.
Port A and B pings remote end via Virtual Router 0
pass:loc=1111:cmd=”ping 10.254.103.12 –v
0”
Port C and D pings remote end via Virtual Router 1
pass:loc=1111:cmd=”ping 10.254.103.31 –v 1”
Output
pass:loc=1105:cmd="ping"
or
pass:loc=1105:cmd="ping -h"
Command Accepted - Processing
rlghncxa03w 04-07-27 08:29:35 EST EAGLE5 31.6.0
pass:loc=1105:cmd="ping"
Command entered at terminal #1.
;
rlghncxa03w 04-07-27 08:29:35 EST EAGLE5 31.6.0
PASS: Command sent to card
;
rlghncxa03w 04-07-27 08:29:35 EST EAGLE5 31.6.0
Usage: ping <hostname | ipaddr> [-h] [-i size] [-n count]
Options:
-f Sets the DF (Don't Fragment) bit in IP header of ICMP packet.
-h Displays this message
-i count Number of pings to send. Range=1..5. Default=3.
-n size Sets size of ICMP echo packet. Range=12..2048. Default=64.
hostname Name of machine to ping
ipaddr IP Address of machine to ping (d.d.d.d)
;
rlghncxa03w 04-07-27 08:29:36 EST EAGLE5 31.6.0
PING command complete
;
pass:loc=1105:cmd="ping tekral"
Command Accepted - Processing
rlghncxa03w 04-07-27 08:30:16 EST EAGLE5 31.6.0
pass:loc=1105:cmd="ping tekral"
Command entered at terminal #1.
;
rlghncxa03w 04-07-27 08:30:16 EST EAGLE5 31.6.0
PASS: Command sent to card
;
rlghncxa03w 04-07-27 08:30:16 EST EAGLE5 31.6.0
PING command in progress
;
rlghncxa03w 04-07-27 08:30:18 EST EAGLE5 31.6.0
PING tekral (192.168.100.3): 56 data bytes
64 bytes from tekral.nc.tekelec.com (192.168.100.3):icmp_seq=0.time=5. ms
64 bytes from tekral.nc.tekelec.com (192.168.100.3):icmp_seq=1.time=0. ms
64 bytes from tekral.nc.tekelec.com (192.168.100.3):icmp_seq=2.time=0. ms
----tekral PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/1/5
PING command complete
;
pass:loc=1105:cmd="ping 192.168.100.3"
Command Accepted - Processing
rlghncxa03w 04-07-27 08:30:44 EST EAGLE5 31.6.0
pass:loc=1105:cmd="ping 192.168.100.3"
Command entered at terminal #1.
;
rlghncxa03w 04-07-27 08:30:44 EST EAGLE5 31.6.0
PASS: Command sent to card
;
rlghncxa03w 04-07-27 08:30:44 EST EAGLE5 31.6.0
PING command in progress
;
rlghncxa03w 04-07-27 08:30:46 EST EAGLE5 31.6.0
PING 192.168.100.3: 56 data bytes
64 bytes from tekral.nc.tekelec.com (192.168.100.3):icmp_seq=0.time=5. ms
64 bytes from tekral.nc.tekelec.com (192.168.100.3):icmp_seq=1.time=0. ms
64 bytes from tekral.nc.tekelec.com (192.168.100.3):icmp_seq=2.time=0. ms
----192.168.100.3 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/1/5
PING command complete
;
pass:loc=1105:cmd="ping tekral -i 2"
Command Accepted - Processing
rlghncxa03w 04-07-27 08:31:46 EST EAGLE5 31.6.0
pass:loc=1105:cmd="ping tekral -i 2"
Command entered at terminal #1.
;
rlghncxa03w 04-07-27 08:31:46 EST EAGLE5 31.6.0
PASS: Command sent to card
;
rlghncxa03w 04-07-27 08:31:46 EST EAGLE5 31.6.0
PING command in progress
;
rlghncxa03w 04-07-27 08:31:47 EST EAGLE5 31.6.0
PING tekral (192.168.100.3): 56 data bytes
64 bytes from tekral.nc.tekelec.com(192.168.100.3):icmp_seq=0.time=10. ms
64 bytes from tekral.nc.tekelec.com(192.168.100.3):icmp_seq=1.time=0. ms
----tekral PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/5/10
PING command complete
;
pass:loc=1105:cmd="ping tekral -i 2 -n 200"
rlghncxa03w 04-07-27 08:32:09 EST EAGLE5 31.6.0
pass:loc=1105:cmd="ping tekral -i 2 -n 200"
Command entered at terminal #1.
;
rlghncxa03w 04-07-27 08:32:09 EST EAGLE5 31.6.0
PING command in progress
;
rlghncxa03w 04-07-27 08:32:10 EST EAGLE5 31.6.0
PING tekral (192.168.100.3): 192 data bytes
200 bytes from tekral.nc.tekelec.com(192.168.100.3):icmp_seq=0.time=5. ms
200 bytes from tekral.nc.tekelec.com(192.168.100.3):icmp_seq=1.time=0. ms
----tekral PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/2/5
PING command complete
;
pass:loc=1107:cmd="ping
meat18a -v 1"
Command Accepted - Processing
tklc1161001 20-08-30 21:52:34 MST EAGLE 46.9.0.0.0-76.28.0
pass:loc=1107:cmd="ping meat18a -v 1"
Command entered at terminal #1.
;
tklc1161001 20-08-30 21:52:34 MST EAGLE 46.9.0.0.0-76.28.0
PASS: Command sent to card
;
tklc1161001 20-08-30 21:52:34 MST EAGLE 46.9.0.0.0-76.28.0
PING command in progress
;
tklc1161001 20-08-30 21:52:34 MST EAGLE 46.9.0.0.0-76.28.0
;
tklc1161001 20-08-30 21:52:36 MST EAGLE 46.9.0.0.0-76.28.0
PING meat18a (10.254.103.78): 56 data bytes
64 bytes from meat18a (10.254.103.78): icmp_seq=0. time=0. ms
64 bytes from meat18a (10.254.103.78): icmp_seq=1. time=0. ms
64 bytes from meat18a (10.254.103.78): icmp_seq=2. time=0. ms
----meat18a PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
PING command complete
;
Note:
In this example, the response shows eight bytes less than the entry (192 as opposed to 200) because theping
command may use eight bytes automatically.
pass:loc=1308:cmd="ping 10.254.111.21 -f -n
1480"
Command Accepted - Processing
eagle10212 12-06-19 10:07:42 EST EAGLE5 44.0.0-64.33.0
pass:loc=1380:cmd="ping 10.254.111.21 -f - n 1480"
Command entered at terminal #5.
eagle10212 12-06-19 10:07:42 EST EAGLE5 44.0.0-64.33.0
PING command in progress
;
eagle10212 12-06-16 10:07:42 EST EAGLE5 44.0.0-64.33.0
PING 10.254.111.21: 1472 data bytes
DF bit set. Fragmentation Needed
PING: no answer from 10.254.111.21
PING command complete
;
pass:loc=1308:cmd="ping 10.254.111.21 -f -n
1380"
Command Accepted -Processing
eagle10212 12-06-19 10:06:58 EST EAGLE5 44.0.0-64.33.0
pass:loc=1308:cmd="ping 10.254.111.21 -f -n 1380"
Command entered at terminal #5.
eagle10212 12-06-19 10:06:58 EST EAGLE5 44.0.0-64.33.0
PING command in progress
;
eagle10212 12-06-19 10:06:58 EST EAGLE5 44.0.0-64.33.0
;
eagle10212 12-06-19 10:07:00 EST EAGLE5 44.0.0-64.33.0
PING 10.254.111.21: 1372 data bytes
1380 bytes from e1021301.1308a (10.254.111.21): icmp_seq=0. time=329319. ms
1380 bytes from e1021301.1308a (10.254.111.21): icmp_seq=1. time=330319. ms
1380 bytes from e1021301.1308a (10.254.111.21): icmp_seq=2. time=331319. ms
----10.254.111.21 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 329319/330319/331319
PING command complete
;