The latest Intelligent Routing Platform v4.2.7 has just been released. This update...
5.3 Juniper
Juniper flow v5/v9/ipfix
Template configuration
set services flow-monitoring version-[v5,v9,ipfix] template IPv4 ipv4-template
set services flow-monitoring version-[v5,v9,ipfix] template IPv4 template-refresh-rate seconds 60
set services flow-monitoring version-ipfix template IPv4 option-refresh-rate seconds 60
Sampling instance configuration
set forwarding-options sampling instance $instance_name input rate 1024
set forwarding-options sampling instance $instance_name family inet output flow-server $NFA_IP port $flow_port
set forwarding-options sampling instance $instance_name family inet output flow-server $NFA_IP no-local-dump
set forwarding-options sampling instance $instance_name family inet output flow-server $NFA_IP source-address $ROUTER_IP
set forwarding-options sampling instance $instance_name family inet output flow-server $NFA_IP version-ipfix template IPv4
set forwarding-options sampling instance $instance_name family inet output inline-jflow source-address $ROUTER_IP
Associate a sampling instance with the Forwarding Engine Processor:
– For the MX80: set chassis tfeb slot 0 sampling-instance $instance_name
– For the MX104: set chassis afeb slot 0 sampling-instance $instance_name
– For higher series with multiple FPC’s: set chassis fpc 0 sampling-instance $instance_name (check which FPC’s are present in router chassis: show chassis hardware)
Apply sampling to the interface
set interfaces $INTERFACE unit 0 family inet sampling input
set interfaces $INTERFACE unit 0 family inet sampling output
set interfaces $INTERFACE unit 0 family inet6 sampling input
set interfaces $INTERFACE unit 0 family inet6 sampling output
After above is done, check the flow table size:
start shell pfe network fpc0
sh jnh $slot-number inline-services flow-table-info
If output is as below:
Configured IPv4 Flow Table in Unit: 0
Configured IPv6 Flow Table in Unit: 0
Configured VPLS Flow Table in Unit: 0
Configured MPLS Flow Table in Unit: 0
Programmed IPv4 Flow Table Size: 1024
Programmed IPv6 Flow Table Size: 1024
Programmed VPLS Flow Table Size: 1024
Programmed MPLS Flow Table Size: 1024
then Increase table size with units of 256K – defau