Step 2: Use Interface Addresses
Purpose
You can ping interfaces on remote routers.
Action
To ping and traceroute between
R5andR6, enter the following JUNOS CLI operational mode commands:user@host>pinginterface-addresscountrequestsuser@host>tracerouteinterface-addressSample Output
user@R6>ping 10.1.15.2 count 3PING 10.1.15.2 (10.1.15.2): 56 data bytes64 bytes from 10.1.15.2: icmp_seq=0 ttl=253 time=2.738 ms64 bytes from 10.1.15.2: icmp_seq=1 ttl=253 time=0.858 ms64 bytes from 10.1.15.2: icmp_seq=2 ttl=253 time=0.849 ms--- 10.1.15.2 ping statistics ---3 packets transmitted, 3 packets received, 0% packet lossround-trip min/avg/max/stddev = 0.849/1.482/2.738/0.888 msuser@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.617 ms 0.534 ms 0.500 ms2 10.1.12.1 (10.1.12.1) 3.500 ms 0.543 ms 0.508 ms3 10.1.15.2 (10.1.15.2) 0.699 ms 0.700 ms 0.672 msuser@R5>ping 10.1.36.2 count 3PING 10.1.36.2 (10.1.36.2): 56 data bytes64 bytes from 10.1.36.2: icmp_seq=0 ttl=253 time=0.890 ms64 bytes from 10.1.36.2: icmp_seq=1 ttl=253 time=0.857 ms64 bytes from 10.1.36.2: icmp_seq=2 ttl=253 time=3.264 ms--- 10.1.36.2 ping statistics ---3 packets transmitted, 3 packets received, 0% packet lossround-trip min/avg/max/stddev = 0.857/1.670/3.264/1.127 msuser@R5>traceroute 10.1.36.2traceroute to 10.1.36.2 (10.1.36.2), 30 hops max, 40 byte packets1 10.1.15.1 (10.1.15.1) 0.636 ms 7.979 ms 0.497 ms2 10.1.12.2 (10.1.12.2) 0.544 ms 0.547 ms 0.512 ms3 10.1.36.2 (10.1.36.2) 0.729 ms 0.696 ms 0.672 msWhat It Means
The sample output shows a successful ping and traceroute between the interfaces on
R6andR5. The ping is successful because the interface addresses of both routers are advertised to their directly connected neighbors.The output for the
traceroutecommand shows the path fromR6toR5, which is throughR2.
NOTE: A
pingcommand might loose packets due to rate limiting of ICMP packets on the specified host.