Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configuring Traffic-Mirror Actions (SRC CLI)


Use this action to mirror traffic from a destination to a source or from a source to a destination. You can configure traffic-mirror actions for Junos OS filter input policy rules.

Before you use traffic-mirror actions, configure forwarding options on routers running Junos OS for port mirroring and next-hop group. For information about how these features work on the router, see the Junos OS Policy Framework Configuration Guide.

The type of action that you can create depends on the type of policy rule. See Policy Information Model.

The rule containing a traffic-mirror action must comply with these conditions:

  • It must be combined with forward actions in the same rule. One of the forward actions must accept the traffic if the source and/or destination IP addresses do not match the conditions.

  • It contains either no classify-traffic condition or only one classify-traffic condition.

  • It can be marked for accounting.

Use the following configuration statement to configure a traffic-mirror action:

To configure a traffic-mirror action:

  1. From configuration mode, enter the traffic-mirror configuration.

  2. (Optional) Enter a description for the traffic-mirror action.

  3. (Optional) Verify the traffic-mirror action configuration.