Junos OS

Expand all | Collapse all

Trace option and transit traffic on MX5

Jump to Best Answer
  • 1.  Trace option and transit traffic on MX5

    Posted 08-20-2017 11:34

    Hi everybody,


    Can we use traceoption to log transit traffic on MX5 the way we can do on SRX?  Or Traceoption on MX5 only used for exceptional traffic i.e traffic bound for RE?


    Thanks and have a good weekend!!

  • 2.  RE: Trace option and transit traffic on MX5

    Posted 08-21-2017 02:43

    Trace options are designed to gather troubleshooting information not logging.


    Can you show the example of what you are trying to migrate from SRX to MX?

  • 3.  RE: Trace option and transit traffic on MX5

    Posted 08-21-2017 06:59

    Thanks for your response.


    I am not migrating MX to SRX.  Basically, I stumbled upon this link which shows how trace options can be used to troubleshoot transit traffic on SRX.




    I was wondering if similar thing can be done with trace options for transit traffic on MX




  • 4.  RE: Trace option and transit traffic on MX5

    Posted 08-22-2017 07:42



    If you want to see transit traffic, firewall filter can be used and log can be captured like below. For the live traffic to and from the device "monitor traffic interface extensive" can be used on the desired interface.




    user@host> show firewall log extensive

    Time of Log: 2016-01-17 22:16:21 PST, Filter: pfe, Filter action: accept, Name of interface: xe-0/0/1.0
    Name of protocol: UDP, Packet Length: 98, Source address:, Destination address:
     :  00-0F: 00 01 03 ee ee ff 00 01 - 09 22 55 ee 81 00 02 58
     :  10-1F: 08 00 45 00 00 62 00 00 - 00 00 40 11 77 8a 01 00

  • 5.  RE: Trace option and transit traffic on MX5
    Best Answer

    Posted 08-21-2017 03:42



    Could you please share the SRX configuration referred in your query? You can use a firewall filter to capture transit traffic on MX5 interfaces. Usually protocol traceoptions are configured to capture protocol operation.


    Arer you refering to the below interface traceoption configuration on MX. If yes, it is supported on MX.


    Configure the traceoptions statement.

    [edit interfaces]
    user@host# edit traceoptions







    Please mark my solution as accepted if it helped.