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

Configuring Layer 2 Port Mirroring for the Global Instance

To configure global port-mirroring properties for a Layer 2 packet address family, include the input statement and the family (bridge | vpls) output statement at the [edit forwarding-options port-mirroring] hierarchy level:

[edit]
forwarding-options {
port-mirroring {
input { # Input packet-sampling properties
rate number;
run-length number;
}
family (bridge | vpls) {
output { # Mirror destination properties
interface interface-name;
no-filter-check; # Optional
}
}
}
}

To configure input packet-sampling properties, include the input statement at the [edit forwarding-options port-mirroring] hierarchy level. To specify the number of packets in a sample, include the rate number statement. To specify the number of sampled packets to mirror, include the run-length number statement.

To configure the mirror destination properties, include the family (bridge | vpls) output statement at the [edit forwarding-options port-mirroring] hierarchy level. To specify the physical interface on which to send the duplicate packets, include the interface interface-name statement.

Note: Under the [edit forwarding-options port-mirroring] hierarchy level, the protocol family statement family bridge 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 bridge.

If you need to allow configuration of filters on the destination interface for the global port-mirroring instance, include the no-filter-check statement. If you apply a filter to an interface that is a Layer 2 port-mirroring destination, a commit failure is returned unless you included the no-filter-check option at the [edit forwarding-options port-mirroring family (bridge | vpls) output] hierarchy level.


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