[Contents] [Prev] [Next] [Index] [Report an Error]


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 interface statement 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 rate statement at the [edit forwarding-options port-mirroring input family inet] hierarchy level. A rate of 1 port-mirrors every packet, while a rate of 10 port-mirrors every tenth packet.

[edit]
forwarding-options {
    port-mirroring {
        input {
            family inet {
                rate 1; 
            } 
        } 
        output {
            interface sp-2/0/0.0;
            }
        }
    }
}

[Contents] [Prev] [Next] [Index] [Report an Error]