Hi ,
Below is the sample config for IPv4 port mirroring :
set forwarding-options port-mirroring input rate 1000
set forwarding-options port-mirroring family inet output interface xe-4/1/0 next-hop 1.1.1.2
set firewall family inet filter PM term 1 then port-mirror
set firewall family inet filter PM term 1 then accept
set firewall family inet filter PM term 1 then port-mirror
set interfaces ge-0/0/3 unit 0 family inet address 2.2.2.1/30
set interfaces ge-0/0/3 unit 0 family inet filter input PM
set interfaces ge-0/0/3 unit 0 family inet filter output PM
set interfaces xe-4/1/0 unit 0 family inet address 1.1.1.1/30
You can also refer to the below KB which has the sample configuration :
https://kb.juniper.net/InfoCenter/index?page=content&id=KB29753&actp=search
[KUDOS PLEASE! If you think I earned it!
If this solution worked for you please flag my post as an "Accepted Solution" so others can benefit..]