Hello PL2,
Greetings!
I tried the above configuration on the lab device and ended up getting the same error:-
# set firewall family inet6 filter ip6_sampling term t1 then count ip6_sampling_count
# set firewall family inet6 filter ip6_sampling term t1 then sample
# set forwarding-options sampling input rate 2000
# set forwarding-options sampling family inet6 output flow-server 192.168.0.1 port 1000 version9 template v6
# commit check
re0:
[edit forwarding-options sampling family inet6 output flow-server 192.168.0.1]
'version9'
Service PIC or inline-jflow (j-series and SRX only) must be specified for version9
[edit forwarding-options sampling family inet6 output flow-server 192.168.0.1 version9 template]
'v6'
Template type must match input protocol
error:
--------------------------------------------------------------------------------------------------------------------------
To remove " Template type must match input protocol", need to add the below command for configuration:-
set services flow-monitoring version9 template v6 ipv6-template
# set firewall family inet6 filter ip6_sampling term t1 then count ip6_sampling_count
# set firewall family inet6 filter ip6_sampling term t1 then sample
# set forwarding-options sampling input rate 2000
# set forwarding-options sampling family inet6 output flow-server 192.168.0.1 port 1000 version9 template v6
labroot@jtac-mx480-r2032-re0# set services flow-monitoring version9 template v6 ipv6-template
[edit]
labroot@jtac-mx480-r2032-re0# commit check
re0:
[edit forwarding-options sampling family inet6 output flow-server 192.168.0.1]
'version9'
Service PIC or inline-jflow (j-series and SRX only) must be specified for version9
error: configuration check-out failed: (statements constraint check failed)
----------------------------------------------------------------------------------------------------------------------------
To remove the next error, need to configure inline-jflow :-
#set forwarding-options sampling family inet6 output inline-jflow source-address 1.1.1.1
--------------------------------------------------------------------------------------------------------------
The final set of commands:-
set firewall family inet6 filter ip6_sampling term t1 then count ip6_sampling_count
set firewall family inet6 filter ip6_sampling term t1 then sample
set forwarding-options sampling input rate 2000
set forwarding-options sampling family inet6 output flow-server 192.168.0.1 port 1000 version9 template v6
set services flow-monitoring version9 template v6 ipv6-template
set forwarding-options sampling family inet6 output inline-jflow source-address 1.1.1.1
# commit check
re0:
configuration check succeeds
re1:
configuration check succeeds
I hope this helps. Please mark this post "Accept as solution" if this answers your query.
Kudos are appreciated too!
Best Regards,
Lingabasappa H