Examples of Unsuccessful ping and traceroute Commands
Purpose
When the
pingortraceroutecommands are unsuccessful, it is useful to understand the output.Action
To ping and traceroute between
R5andR6, enter the following JUNOS CLI operational mode commands:user@host>pinginterface-addresscountrequestsuser@host>tracerouteinterface-addressSample Output 1
user@R6>ping 10.1.15.2 count 3PING 10.1.15.2 (10.1.15.2): 56 data bytes36 bytes from 10.1.26.1:Time to live exceededVr HL TOS Len ID Flg offTTLPro cks Src Dst4 5 00 0054 3648 0 00000101 465c 10.1.26.2 10.1.15.236 bytes from 10.1.26.1: Time to live exceededVr HL TOS Len ID Flg off TTL Pro cks Src Dst4 5 00 0054 364b 0 0000 01 01 4659 10.1.26.2 10.1.15.236 bytes from 10.1.26.1: Time to live exceededVr HL TOS Len ID Flg off TTL Pro cks Src Dst4 5 00 0054 364f 0 0000 01 01 4655 10.1.26.2 10.1.15.2^C--- 10.1.15.2 ping statistics ---3 packets transmitted, 0 packets received, 100% packet lossuser@R6>ping 10.0.0.5 count 3PING 10.0.0.5 (10.0.0.5): 56 data bytesping: sendto: No route to hostping: sendto: No route to hostping: sendto: No route to host^C--- 10.0.0.5 ping statistics ---3 packets transmitted, 0 packets received, 100% packet lossuser@R6>ping 10.1.15.2PING 10.1.15.2 (10.1.15.2): 56 data bytes^C--- 10.1.15.2 ping statistics ---4 packets transmitted, 0 packets received, 100% packet lossSample Output 2
user@R6>traceroute 10.1.15.2traceroute to 10.1.15.2 (10.1.15.2), 30 hops max, 40 byte packets1 10.1.26.1 (10.1.26.1) 0.626 ms 0.526 ms 0.494 ms2 10.1.26.2 (10.1.26.2) 0.521 ms 0.529 ms 0.509 ms3 10.1.26.1 (10.1.26.1) 0.516 ms 0.536 ms 0.523 ms4 10.1.26.2 (10.1.26.2) 0.528 ms 0.547 ms 0.524 ms5 10.1.26.1 (10.1.26.1) 0.532 ms 0.549 ms 0.535 ms6 10.1.26.2 (10.1.26.2) 0.547 ms 0.566 ms 0.543 ms7 10.1.26.1 (10.1.26.1) 0.551 ms 0.569 ms 0.538 ms8 10.1.26.2 (10.1.26.2) 0.557 ms 0.580 ms 0.567 ms9 10.1.26.1 (10.1.26.1) 0.570 ms 0.598 ms 0.570 msuser@R6>traceroute 10.1.15.2traceroute to 10.1.15.2 (10.1.15.2), 30 hops max, 40 byte packets1 10.1.36.1 (10.1.36.1) 0.651 ms 7.834 ms 0.506 ms2 10.1.23.1 (10.1.23.1) 0.536 ms 0.538 ms 0.504 ms3 * * *4 * * *5 *^CWhat It Means
Sample output 1 shows three instances of the
pingcommand not succeeding. In the first instance, the packets exceed the time-to-live value, which is decremented to1, indicating that packets are being rejected possibly because of a loop. In the second instance, the local router does not know the route to the host. In the third instance, there is no route to the IP address, which might be due to packets being lost on a remote router.Sample output 2 shows two instances of the
traceroutecommand not succeeding. In the first instance, there is a loop between shared interfaces onR6andR2, as indicated by the10.1.26.1and10.1.26.2appearing repeatedly. In the second instance, the path goes throughR3(10.1.36.1) toR2(10.1.23.1) when it times out, as indicated by the asterisk (*). The timeout might be due to the absence of a route to the remote interface.