Juniper devices support Junos Traffic Vision, previously called J-Flow.
These instructions assume:
- The Juniper MX router is running Junos OS release 13.2 or higher.
- MS-MIC is installed on the device.
- The date, time and time zonee are correctly set on the router.
- You have Telnet or SSH credentials and access to your Juniper MX router.
- The IP address of your Auvik collector is known.
If you are using a shared collector and want TrafficInsights to associate flow data with the correct site, you must add the source IP address as a dedicated /32 network within Auvik.
For example:
192.168.1.10/32Even if the source IP address is already included in a larger monitored subnet, a dedicated /32 entry is required for TrafficInsights to correctly associate flow records with the appropriate site.
After making this change, it may take several minutes before flow data appears in TrafficInsights.
Access your router CLI
- Telnet or SSH into your router.
- Enter privileged mode by typing enable and entering your enable password.
Enable NetFlow
Run the following command. Replace AuvikCollectorIP with the IP address of your Auvik collector and AuvikPort with one of the following ports: 2055, 2056, 4432, 4739, 6343, 9995 or 9996.
set chassis fpc 1 sampling-instance NETFLOW-INSTANCE set chassis network-services ip set services flow-monitoring version9 template LM-V9 option-refresh-rate seconds 25 set services flow-monitoring version9 template LM-V9 template-refresh-rate seconds 15 set services flow-monitoring version9 template LM-V9 ipv4-template set forwarding-options sampling instance NETFLOW-INSTANCE input rate 1 run-length 0 set forwarding-options sampling instance NETFLOW-INSTANCE family inet output flow-server <AuvikCollectorIP> port <AuvikPort> set forwarding-options sampling instance NETFLOW-INSTANCE family inet output flow-server <AuvikCollectorIP> source <Your Router IP> set forwarding-options sampling instance NETFLOW-INSTANCE family inet output flow-server <AuvikCollectorIP> version9 template LM-V9 set forwarding-options sampling instance NETFLOW-INSTANCE family inet output inline-jflow source-address <Your Router IP> set interfaces ge-1/3/3 unit 2630 family inet sampling input set interfaces ge-1/3/3 unit 2630 family inet sampling output
References:
- https://www.juniper.net/documentation/en_US/junos/topics/concept/inline-sampling-overview.html
- https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/inline-flow-monitoring-mx80.html
- https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/inline-flow-monitoring.html