Option: Configure Port-Mirroring Statements
You can copy entire packets and reroute them to another interface by using port mirroring. To send port-mirrored traffic to an interface, include the
interfacestatement at the [edit forwarding-options port-mirroring output] hierarchy level and specify the interface to receive the traffic.You can even send port-mirrored traffic to the monitoring services or adaptive services interface. If you choose this option, accepted traffic is copied and the packet copies are sent to the services interface for cflowd processing.
To configure how often packets are copied from the monitored traffic, include the
ratestatement at the [edit forwarding-options port-mirroring input family inet] hierarchy level. A rate of1port-mirrors every packet, while a rate of10port-mirrors every tenth packet.[edit]forwarding-options {port-mirroring {input {family inet {rate 1;}}output {interface sp-2/0/0.0;}}}}