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:
From configuration mode, enter the traffic-mirror configuration.user@host# edit policies group junos list mirror rule pr traffic-mirror
(Optional) Enter a description for the traffic-mirror action.[edit policies group junos list mirror rule pr traffic-mirror]user@host# set description description
(Optional) Verify the traffic-mirror action configuration.
[edit policies group junos list mirror rule pr traffic-mirror] user@host# show description "Traffic mirroring action for subnet.";