I have Juniper SRX

I created this static route (in inet.0):      *[Static/5] 21:52:24
                    > to via ge-0/0/2.0

How do I view what traffic is being forwarded via that static route? I tried to monitor traffic with this command but it has no output:

monitor traffic interface ge-0/0/2.0 matching "net"

I know traffic is going there because I have devices pinging addresses in Is my command wrong?

1 Answer 1


Using the filter matching "net" only shows the traffic directed to the gateway itself (on the IP level).

Instead, you'd need to filter matching "net" to see traffic destined there.

The filter is applied to packets that are passing through the interface - however, they're not carrying the gateway's IP address but their original source and destination addresses (unless NAT is in use).

The gateway's address is just used to determine the L2 destination of the current hop, but it's completely invisible in the IP packet at hand.

  • thanks, is there a way to monitor ALL interfaces too? if I leave interface blank it monitors st0
    – red888
    Oct 9, 2018 at 17:34
  • I'm not exactly familiar with Junipers - it's quite possible that you can only monitor a single interface at a time, or turn on monitoring for each individually, or you might be able to use all (unlikely though).
    – Zac67
    Oct 9, 2018 at 18:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.