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

Configuring Layer 2 Port-Mirroring Instances

A Layer 2 port-mirroring instance is a named set of port-mirroring properties that you can associate with a particular Packet Forwarding Engine to mirror packets to different destinations. To configure a Layer 2 port-mirroring instance, include the instance pm-instance-name statement at the [edit forwarding-options port-mirroring] hierarchy level:

[edit]
forwarding-options {
port-mirroring {
instance {
pm-instance-name-a { # One port-mirroring instance for this router
input {
maximum-run-length number;
rate number;
run-length number;
}
family (bridge | ccc | vpls) {
output {
interface interface-name;
no-filter-check; # Optional
}
}
}
.
.
.
pm-instance-name-z { # Another port-mirroring instance for this router
input {
maximum-run-length number;
rate number;
run-length number;
}
family (bridge | ccc | vpls) {
output {
interface interface-name;
no-filter-check; # Optional
}
}
}
}
}
}

To configure input packet-sampling properties, include the input statement at the [edit forwarding-options port-mirroring instance pm-instance-name] 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 instance pm-instance-name] 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 instance pm-instance-name] hierarchy level, the protocol family statement family bridge is an alias for family vpls. The 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 a named 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 instance pm-instance-name family (bridge | vpls) output] hierarchy level.


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