This article shows how to check if an IP address, device, or network is reachable from the SRX.
A quick way to determine how an SRX device will route a packet for a given IP address is to use the command:
show route <ip address>
Example 1: The following output states that the packet for 100.1.1.3 will be routed via default route (0.0.0.0/0) with next-hop of 1.1.1.1.
root@CorporateOffice> show route 100.1.1.3 inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0.0.0.0/0 *[Static/5] 01:16:51 > to 1.1.1.1 via ge-0/0/3.0
Example 2: The following output states that the packet for 192.168.3.0 will be routed to the st0.0 Interface as the next-hop.
root@CorporateOffice> show route 192.168.3.0 inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.3.0/24 *[Static/5] 00:00:53 > via st0.0
If no route exists then no output will be displayed by the command. If the next-hop for a route is not reachable then the route won't appear either. This usually happens if the interface facing the next-hop device is down.
2020-06-29: Removed references to J-Series.