Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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:

    policies group name list name rule name traffic-mirror {description description ; }

    To configure a traffic-mirror action:

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

    Published: 2014-06-06