3. Specify global-level packet-selection properties.
a.
Specify the number of packets to select:
[edit forwarding-options port-mirroring input]
user@host# set rate number
The valid range is 1 through 65535.
b.
Specify the number of packets to mirror from each selection:
[edit forwarding-options port-mirroring input]
user@host# set run-length number
The valid range is 0 through 20. The default value is 0.
c.
Specify the length to which mirrored packets are to be truncated:
[edit forwarding-options port-mirroring input]
user@host# set maximum-packet-length number
The valid range is 0 through 9216. The default value is 0, which means the mirrored
packets are not truncated.
4.
Specify the global-level Layer 2 address-type family from which traffic is to be selected
for mirroring:
[edit forwarding-options port-mirroring input]
user@host# up
[edit forwarding-options port-mirroring]
user@host# edit family family
The value of the family option can be ethernet-switching, ccc, or vpls.
NOTE: Under the [edit forwarding-options port-mirroring] hierarchy level,
the protocol family statement family ethernet-switching is an alias for
family vpls. The command-line interface (CLI) displays Layer 2
port-mirroring configurations as family vpls, even for Layer 2 port-mirroring
configured as family ethernet-switching. Use family ethernet-switching
when the physical interface is configured with encapsulation
ethernet-bridge.
5.
Enable configuration of global-level mirror destination properties for this address
family:
[edit forwarding-options port-mirroring family family]
user@host# edit output
Copyright © 2016, Juniper Networks, Inc.22
Port Mirroring Feature Guide for EX9200 Switches