This aricle provides a sample configuration for Port Mirroring on Integrated Routing and Bridging (IRB) interfaces.
R1 -------------- irb.500- R2 -irb.501 ------------------ R3
interfaces { ge-8/0/0 { unit 0 { family bridge { interface-mode access; vlan-id 500; } } } ge-8/0/1 { unit 0 { family bridge { interface-mode access; vlan-id 501; } } } irb { unit 500 { family inet { filter { input irb-capture; } address 10.10.10.100/24; } } unit 501 { family inet { filter { input irb-capture; } address 20.20.20.100/24; } } }
interfaces { ge-8/0/2 { unit 0 { family inet { address 192.168.10.1/24 { arp 192.168.10.2 mac 60:eb:69:0b:6c:56; } } } } }
forwarding-options { port-mirroring { input { rate 1; run-length 1; } family inet { output { interface ge-8/0/2.0; next-hop 192.168.10.2; } } } }
firewall { family inet { filter irb-capture { term all { then { port-mirror; accept; } } } } }
bridge-domains { vlan-500 { domain-type bridge; vlan-id 500; routing-interface irb.500; } vlan-501 { domain-type bridge; vlan-id 501; routing-interface irb.501; } }
> Monitor interface ge-8/0/2