}
connections {
interface-switch if_switch {
interface ge-2/0/1.0;
interface ge-2/0/1.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/9.0; # Mirror packets to the external analyzer
}
}
instance {
inst1 {
input {
rate 1;
maximum-packet-length 300;
}
family ccc {
output {
interface ge-2/2/9.0;
}
{
}
}
}
}
4.
Define the Layer 2 port-mirroring firewall filter pm_filter_ccc for family ccc:
[edit]
firewall {
family ccc {
filter pm_filter_ccc {
term pm {
then port-mirror;
}
}
}
}
5.
Apply the port mirror instance to the chassis:
[edit]
59Copyright © 2016, Juniper Networks, Inc.
Chapter 7: Port Mirroring for Logical interfaces