This article provides an example of how to configure port-mirroring in logical systems.
First, configure a port-mirroring instance: # show forwarding-options port-mirroring { instance { JTAC { input { rate 1; run-length 20; maximum-packet-length 9000; } family inet { output { interface xe-1/0/0.10 { <-- The interface pointing to the collector must be in the main-instance, otherwise the PM instance will be down next-hop 10.2.10.2; } no-filter-check; } Once the instance is configured, map it to the FPC where the traffic will be received:
# show forwarding-options port-mirroring { instance { JTAC { input { rate 1; run-length 20; maximum-packet-length 9000; } family inet { output { interface xe-1/0/0.10 {
next-hop 10.2.10.2; } no-filter-check; }
# show chassis fpc 1 {
port-mirror-instance JTAC;
# show firewall filter PM { term 1 { then port-mirror-instance JTAC; }
# show logical-systems R2 interfaces { xe-1/1/0 { unit 10 { vlan-id 10; family inet { filter { input PM; output PM; } address 10.1.10.2/30;