Documentation
Name
net node ping - test the reachability of another node
Synopsis
ping
[--ttl=]
<addr>
Arguments
- --ttl=
- initial TTL of the ICMP echo-request message
- addr
- destination address
Description
This command tests the reachability of another node by sending a probe message (like an ICMP echo-request) and waiting for an answer (ICMP echo-reply). The command will only succeed if the destination node is also able to reach the source node.
Example
cbgp> net node 1.0.0.0 ping 1.0.0.4
ping: reply from 1.0.0.4
The --ttl option can be used to limit the propagation of the ICMP echo-request message, as shown in the following example:
cbgp> net node 1.0.0.0 ping --ttl=1 1.0.0.4
ping: icmp error (time-exceeded) from 1.0.0.1
cbgp> net node 1.0.0.0 ping --ttl=2 1.0.0.4
ping: icmp error (time-exceeded) from 1.0.0.3
cbgp> net node 1.0.0.0 ping --ttl=3 1.0.0.4
ping: reply from 1.0.0.4
Although the ping command sends its probes with the same mechanisms (same protocol stack) as other messages in the simulation (especially BGP), the messages sent by ping are put in a separate simulation queue which is processed immediately. This is the reason why there is no need to run sim run to process ping's messages.
See also
See also commands traceroute and record-route for alternative ways to check the reachability of nodes.