I tried to do 1:N port mirroring on a juniper EX2300T switch with below commands:
From port no ge-0/1/0.0 to port ge-0/1/1.0 and ge-0/1/2.0.0.
set forwarding-options analyzer MyCapture1 input ingress interface ge-0/1/0.0
set forwarding-options analyzer MyCapture1 input egress interface ge-0/1/0.0
set forwarding-options analyzer MyCapture1 output vlan 999
set forwarding-options port-mirroring instance inst1 family ethernet-switching output vlan 999
set vlans vlan999 vlan-id 999
set interfaces ge-0/1/1 unit 0 family ethernet-switching vlan members 999
set interfaces ge-0/1/2 unit 0 family ethernet-switching vlan members 999
set firewall family ethernet-switching filter f1 term t1 from interface ge-0/1/0.0
set firewall family ethernet-switching filter f1 term t1 then port-mirror-instance inst
set interfaces ge-0/1/1 unit 0 family ethernet-switching vlan members default
set interfaces ge-0/1/2 unit 0 family ethernet-switching vlan members default
set forwarding-options analyzer MyCapture1 output next-hop-group nhg1
set forwarding-options next-hop-group nhg1 group-type layer-2
set forwarding-options next-hop-group nhg1 interface ge-0/1/1.0
set forwarding-options next-hop-group nhg1 interface ge-0/1/2.0
Will it honour mirroring to next hop group nhg1?
------------------------------
Rohit Patil
------------------------------