Rerouting Packets on an M, MX or T Series Router with Port Mirroring
You can copy packets and reroute them to another interface by using port mirroring. To send packet copies to an interface, include the interface statement at the [edit forwarding-options port-mirroring family family-name output] hierarchy level and specify the interface to receive the traffic.
You can even send port-mirrored traffic to a 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 flow processing.
To configure how often packets are copied from the monitored traffic, include the rate statement at the [edit forwarding-options port-mirroring family family-name input] hierarchy level. A rate of 1 port-mirrors every packet, while a rate of 10 port-mirrors every tenth packet.