When an MX-series router is configured to Layer 2 port mirroring at both ingress and egress interfaces, and the same packet could be mirrored twice. You can configure an MX-series router to mirror traffic only once, so that the router does not send duplicate sampled packets to the same mirroring destination. To configure, include the mirror-once statement at the [edit forwarding-options port-mirroring] hierarchy level.
- [edit]
- forwarding-options {
-
- port-mirroring {
- mirror-once; # Mirror destinations do not receive duplicate
packets
-
- input {
- ... input-sampling-configuration ...
- }
-
- family ( bridge | ccc | vpls) {
-
- output {
- ... mirroring-destination-configuration ...
- }
- }
- }
- }