You can configure port mirroring for Layer 2 VPLS traffic on MX-series routers. To configure port mirroring, include the vpls statement at the [edit forwarding-options port-mirroring] hierarchy level.
You can configure multiple instances of port mirroring to enable multiple Packet Forwarding Engines to mirror packets to different destinations. To configure multiple instances, include the instance instance-name statement at the [edit forwarding-options port-mirroring] hierarchy level.
To configure a router to sample the packet for port mirroring only once, include the mirror-once statement at the [edit forwarding-options]. This option is useful when you are performing port mirroring on both the ingress and egress interfaces to eliminate duplication when input and output filtering is performed on the same packet.
To bind a port-mirroring instance to a specific DPC and its Packet Forwarding Engines, include the port-mirror-instance instance-name statement at the [edit chassis fpc number] hierarchy level. A port-mirror instance configured at the FPC-level for the DPC is bound to all the Packet Forwarding Engines on the DPC. This overrides the global port mirroring properties (if the port-mirroring statement has been included at the [edit forwarding-options] hierarchy level).
- [edit chassis]
- fpc slot-number {
- port-mirror-instance pm-instance-name;
- }
For MX-series routers, there is a one-to-one mapping of the Packet Forwarding Engines and the PICs. Therefore, you can override the port mirroring instance properties configured at the DPC level and configure a PIC-level port-mirroring instance. To bind a port mirroring instance to a specific Packet Forwarding Engine and its associated ports, include the include the port-mirror-instance pm-instance-name statement at the [edit chassis fpc slot-number pic number] hierarchy level.
- [edit chassis]
- fpc slot-number {
- port-mirror-instance pm-instance-name-a;
-
- pic slot-number {
- port-mirror-instance pm-instance-name-b;
- }
- }
If port-mirroring instances are configured at multiple levels in the MX-series router hierarchy, the port-mirroring properties are applied as follows:
For more information about configuring port mirroring for Layer 2 VPLS traffic, see the JUNOS MX-series Layer 2 Configuration Guide.