I did as per the documentation
Junos: 18.4R2-S3
[edit chassis fpc 0] - sampling-instance 1to1; - inline-services { - flow-table-size { - ipv4-flow-table-size 10; - } - } [edit] - services { - flow-monitoring { - version-ipfix { - template ipv4 { - flow-active-timeout 60; - flow-inactive-timeout 60; - template-refresh-rate { - packets 1000; - seconds 60; - } - ipv4-template; - } - } - } - } [edit interfaces ae0 unit 0 family inet] - sampling { - input; - output; - } [edit interfaces ae1 unit 0 family inet] - sampling { - input; - output; - } [edit forwarding-options] - storm-control-profiles default { - all; - } - sampling { - traceoptions { - file ipfix.log size 10k; - } - instance { - 1to1 { - input { - rate 1000; - } - family inet { - output { - flow-server 2.2.2.2 { - port 9995; - version-ipfix { - template { - ipv4; - } - } - } - inline-jflow { - source-address 1.1.1.1; - } - } - } - } - } - }
Result:
show services accounting flow inline-jflow fpc-slot 0
Flow information
FPC Slot: 0
Flow Packets: 0, Flow Bytes: 0
Active Flows: 0, Total Flows: 0
Flows Exported: 0, Flow Packets Exported: 43
Flows Inactive Timed Out: 0, Flows Active Timed Out: 0
IPv4 Flows:
IPv4 Flow Packets: 0, IPv4 Flow Bytes: 0
IPv4 Active Flows: 0, IPv4 Total Flows: 0
IPv4 Flows Exported: 0
IPv4 Flows Inactive Timed Out: 0, IPv4 Flows Active Timed Out: 0
IPv6 Flows:
IPv6 Flow Packets: 0, IPv6 Flow Bytes: 0
IPv6 Active Flows: 0, IPv6 Total Flows: 0
IPv6 Flows Exported: 0
IPv6 Flows Inactive Timed Out: 0, IPv6 Flows Active Timed Out: 0
MPLS Flows:
MPLS Flow Packets: 0, MPLS Flow Bytes: 0
MPLS Active Flows: 0, MPLS Total Flows: 0
MPLS Flows Exported: 0
MPLS Flows Inactive Timed Out: 0, MPLS Flows Active Timed Out: 0
show services accounting errors inline-jflow fpc-slot 0
Error information
FPC Slot: 0
Flow Creation Failures: 0
Route Record Lookup Failures: 0, AS Lookup Failures: 0
Export Packet Failures: 0
Memory Overload: No, Memory Alloc Fail Count: 0
IPv4:
IPv4 Flow Creation Failures: 0
IPv4 Route Record Lookup Failures: 0, IPv4 AS Lookup Failures: 0
IPv6:
IPv6 Flow Creation Failures: 0
IPv6 Route Record Lookup Failures: 0, IPv6 AS Lookup Failures: 0
MPLS:
MPLS Flow Creation Failures: 0
MPLS Route Record Lookup Failures: 0, MPLS AS Lookup Failures: 0
show services accounting status inline-jflow fpc-slot 0
Status information
FPC Slot: 0
IPV4 export format: Version-IPFIX, IPV6 export format: Not set
MPLS export format: Not set
IPv4 Route Record Count: 1174, IPv6 Route Record Count: 107, MPLS Route Record Count: 0
Route Record Count: 1281, AS Record Count: 41
Route-Records Set: Yes, Config Set: Yes
It doesn't seem to work.
What did I forget to do?