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 filter input policy rules.

Before you use traffic-mirror actions, configure forwarding options on JUNOS routing platforms for port mirroring and next-hop group. For information about how these features work on the router, see the JUNOS 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 name {
description description ;
}

To configure a traffic-mirror action:

  1. From configuration mode, enter the traffic-mirror configuration. For example, in this procedure, fromSubnets is the name of the traffic-mirror action.
    user@host# edit policies group junos list mirror rule pr traffic-mirror fromSubnets
  2. (Optional) Enter a description for the traffic-mirror action.
    [edit policies group junos list mirror rule pr traffic-mirror fromSubnets]
    user@host# set description description
  3. (Optional) Verify the traffic-mirror action configuration.
    [edit policies group junos list mirror rule pr traffic-mirror fromSubnets]
    user@host# show 
    description "Traffic mirroring action for subnet.";

Copyright © 2008, Juniper Networks, Inc. All rights reservedTrademark Notice.