Related Documentation
- M Series
- Layer 2 Port Mirroring Overview
- MX Series
- Layer 2 Port Mirroring Overview
- Layer 2 Port Mirroring Firewall Filters
- Defining a Layer 2 Port-Mirroring Firewall Filter
- Applying Layer 2 Port Mirroring to a Logical Interface
- Applying Layer 2 Port Mirroring to Traffic Forwarded or Flooded to a Bridge Domain
- Example: Layer 2 Port Mirroring at a Logical Interface
- Example: Layer 2 Port Mirroring for a Layer 2 VPN
- Example: Layer 2 Port Mirroring for a Layer 2 VPN with LAG Links
Applying Layer 2 Port Mirroring to Traffic Forwarded or Flooded to a VPLS Routing Instance
You can apply a Layer 2 port-mirroring firewall filter to traffic being forwarded or flooded to a VPLS routing instance. Only packets of the specified family type and forwarded or flooded to that VPLS routing instance are mirrored.
Before you begin, complete the following task:
- Define a Layer 2 port-mirroring firewall filter to
be applied to the traffic being forwarded to a VPLS routing instance
or flooded to a bridge domain. For details, see Defining a Layer 2 Port-Mirroring Firewall Filter.

Note: This configuration task shows two Layer_2 port-mirroring firewall filters: one filter applied to the VPLS routing instance forwarding table ingress traffic, and one filter applied to the VPLS routing instance flood table ingress traffic.
To apply a Layer 2 port-mirroring firewall filter to the forwarding table or flood table of a VPLS routing instance:
- For more detailed configuration information, see Configuring a VPLS Routing Instance.
Enable configuration of the VPLS routing instance to which you want to apply a Layer 2 port-mirroring firewall filter for forwarded or flooded traffic:
[edit]user@host# edit routing-instances routing-instance-nameuser@host# set instance-type vplsuser@host# set interface interface-nameuser@host# set route-distinguisher (as-number:number | ip-address:number)user@host# set vrf-import [policy-names]user@host# set vrf-export [policy-names]user@host# edit protocols vplsuser@host@ ... vpls-configuration ... Enable configuration of traffic forwarding on the VPLS routing instance:
[edit routing-instances routing-instance-name protocols vpls]user@host# up 2[edit routing-instances routing-instance-name]user@host# edit forwarding-optionsApply a Layer 2 port-mirroring firewall filter to the VPLS routing instance forwarding table or flood table.
To mirror packets being forwarded to the VPLS routing instance:
[edit routing-instances routing-instance-name forwarding-options]user@host# set filter input pm-filter-for-vpls-ri-forwardedTo mirror packets being flooded to the VPLS routing instance:
[edit routing-instances routing-instance-name forwarding-options]user@host# set flood input pm-filter-for-vpls-ri-flooded
Verify the minimum configuration for applying a Layer 2 port-mirroring firewall filter to the forwarding table or flood table of the VPLS routing instance:
[edit routing-instances routing-instance-name forwarding-options]user@host# top[edit]user@host# show routing-instancesrouting-instances {routing-instance-name {instance-type vpls;interface interface-name;route-distinguisher (as-number:number | ip-address:number);vrf-import [policy-names];vrf-export [policy-names];protocols {vpls {...vpls-configuration...}}forwarding-options {family vpls {filter { # Mirror ingress forwarded trafficinput pm-filter-for-vpls-ri-forwarded; }flood { # Mirror ingress flooded trafficinput pm-filter-for-vpls-ri-flooded; }}}}}
Related Documentation
- M Series
- Layer 2 Port Mirroring Overview
- MX Series
- Layer 2 Port Mirroring Overview
- Layer 2 Port Mirroring Firewall Filters
- Defining a Layer 2 Port-Mirroring Firewall Filter
- Applying Layer 2 Port Mirroring to a Logical Interface
- Applying Layer 2 Port Mirroring to Traffic Forwarded or Flooded to a Bridge Domain
- Example: Layer 2 Port Mirroring at a Logical Interface
- Example: Layer 2 Port Mirroring for a Layer 2 VPN
- Example: Layer 2 Port Mirroring for a Layer 2 VPN with LAG Links

