chassis {
fpc 2 {
port-mirror-instance inst1;
}
}
6.
Configure interface ge-2/2/9 for the VLANs, and configure interface ge-2/0/1 for port
mirroring with the pm_filter_ccc firewall filter:
[edit]
interfaces {
ge-2/2/9 {
encapsulation ethernet-bridge;
unit 0 {
family ethernet-switching;
}
}
ge-2/0/1 {
vlan-tagging;
encapsulation extended-vlan-ccc;
unit 0 {
vlan-id 10;
family ccc {
filter {
input pm_filter_ccc;
}
}
}
unit 1 {
vlan-id 20;
family ccc {
filter {
output pm_filter_ccc;
}
}
}
}
}
Related
Documentation
Understanding Layer 2 Port Mirroring on page 3•
• Layer 2 Port Mirroring Firewall Filters
• Defining a Layer 2 Port-Mirroring Firewall Filter
Example: Layer 2 Port Mirroring for a Layer 2 VPN with LAG Links
The following example is not a complete configuration, but shows all the steps needed
to configure port mirroring on an L2VPN using family ccc and aggregated Ethernet links.
1.
Configure the VLAN port_mirror_bd, which contains the external packet analyzer:
[edit]
vlans {
port_mirror_vlan { # Contains an external traffic analyzer
Copyright © 2016, Juniper Networks, Inc.60
Port Mirroring Feature Guide for EX9200 Switches