This article explains how port mirroring can be configured on a high-end SRX device. This feature is supported from Junos version 11.1.
Sometimes you may need to analyze the traffic on an interface. On high end SRX devices, this can be accomplished by mirroring the interface.
Step 1: Configure an instance of port-mirroring
[edit forwarding-options] port-mirroring { instance { instance1 { input { rate 1; run-length 10; } family any { output { interface ge-1/0/1.0; } } } } }
Step 2: Apply the instance on the port that is to be mirrored.
[edit interfaces] ge-1/0/0 { port-mirror-instance instance1; unit 0 { family inet { address 1.1.1.1/24; } } }
The following is a sample configuration. The traffic which comes into or goes out of ge-1/0/0 can be captured on ge-1/0/1. version 11.1R1.14;
system { root-authentication { encrypted-password "$ABC123"; ## SECRET-DATA } services { ftp; } } interfaces { ge-1/0/0 { port-mirror-instance instance1; unit 0 { family inet { address 1.1.1.1/24; } } } ge-1/0/1 { unit 0 { family inet { address 2.2.2.1/24; } } } } forwarding-options { port-mirroring { instance { instance1 { input { rate 1; run-length 10; } family any { output { interface ge-1/0/1.0; } } } } } } security { policies { default-policy { permit-all; } } zones { security-zone trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { all; } } } }
Caveats and Limitations
06/23/2025