interface ge-2/2/8.0; # External analyzer
}
}
2.
Configure the Layer 2 VPN CCC to connect interface ae0.0 and interface ae0.1:
[edit]
protocols {
mpls {
interface all;
}
connections {
interface-switch if_switch {
interface ae0.0;
interface ae0.1;
}
}
}
3.
Configure Layer 2 port mirroring for the global instance, with the port-mirroring
destination being the VLAN interface associated with the external analyzer (logical
interface ge-2/2/9.0 on VLAN example_bd_with_analyzer):
[edit]
forwarding-options {
port-mirroring {
input {
rate 1;
maximum-packet-length 200;
}
family ccc {
output {
interface ge-2/2/8.0; # Mirror packets to the external analyzer
}
}
instance {
pm_instance_1 {
input {
rate 1;
maximum-packet-length 300;
}
family ccc {
output {
interface ge-2/2/8.0;
}
{
}
}
}
}
4.
Configure the firewall filter pm_ccc for family ccc:
[edit]
firewall {
family ccc {
filter pm_ccc {
61Copyright © 2016, Juniper Networks, Inc.
Chapter 7: Port Mirroring for Logical interfaces