Ping: Sending an ICMP Echo Request Message
Use NCL’s Ping command to send an Internet Control Message Protocol
(ICMP) echo request message to a specific IP address, as a
network-layer test of the reachability of the node. Ping does not support
loopback (pinging this router) or broadcast addresses. This router must
have IP routing configured. After transmitting the request message to
the node, the router waits for a response. If it is received within the
specified or default interval, the console displays a message indicating
that the target is “alive”. If an echo response is not received within the
specified or default interval, the console displays a message indicating
that the target did not respond.
Syntax
ping X.X.X.X [count] [wait]
X.X.X.X is the IP address of the target node in dotted decimal
notation.
[count] (optional) is the number of times to repeat the echo
request packet. If an integer is not included, the packet is sent
once.
[wait] (optional) is how many seconds to wait for a response.
If a second integer is not included, the response must be received
in five seconds to be successful.
Examples
ping 15.3.0.99 Sends it once and waits 5 seconds.
ping 15.3.0.99 5 Sends it 5 times and waits 5 seconds.
ping 15.3.0.99 1 30 Sends it once and waits 30 seconds.
Using the Network Control Language
Managing Router Operations and Resources
16-18