vlan-id 202;
family ethernet-switching {
filter { # Implicitly references the underlying port mirroring.
input pm_filter_2;
}
}
}
}
}
Explicit Reference of a Port Mirroring Instance
On logical interface ge-2/0/1.0, the port-mirror-instance statement explicitly references
the Layer 2 port mirroring properties in the named instance pm_instance_1. In this example,
the port mirroring properties specified in pm_instance_1 remain in effect at logical interface
ge-2/0/1.0 under the following conditions:
•
The firewall filter pm_filter_1 remains configured (as shown in step 3).
•
The named instance pm_instance_1 remains configured (as shown in step 1).
Even if the named instance pm_instance_1 is no longer configured or no longer bound to
the router (or switch) chassis at FPC 2, PIC 0, the port mirroring properties specified in
pm_instance_1 remain in effect at logical interface fe-2/0/1.0 through firewall filter
pm_filter_1.
Implicit Reference of Port Mirroring on the Underlying Physical Interface
On logical interface ge-2/0/1.1, the port-mirror statement implicitly references the Layer 2
port mirroring properties in effect at the underlying physical interface ge-2/0/1. In this
example, the port mirroring properties specified in pm_instance_2 remain in effect at the
ports associated with FPC 2, PIC 0 under the following conditions:
•
The firewall filter pm_filter_2 remains configured (as shown in step 3).
•
The named instance pm_instance_2 remains configured (as shown in step 1).
•
The named instance pm_instance_2 remains bound to the router (or switch) chassis
at FPC 2, PIC 0 (as shown in step 2).
If you disable the named instance pm_instance_2 or delete its binding to the physical
ports associated with FPC 2, PIC 0, then—if global Layer 2 port mirroring properties had
been configured—the global port mirroring properties would be used at logical interface
ge-2/0/1.1 through firewall filter pm_filter_2.
NOTE: There is a limitation to a Layer 2 port mirroring firewall filter in which
you implicitly reference Layer 2 port mirroring properties by including the
port-mirror statement. If multiple named instances of Layer 2 port mirroring
are bound to the underlying physical interface, then only the first binding in
the stanza (or the only binding) is used at the logical interface. This is done
mainly for backward compatibility.
39Copyright © 2016, Juniper Networks, Inc.
Chapter 6: Port Mirroring for Physical Interfaces