Configuring Flow Monitoring on an MX Series Router with MS-MIC and MS-MPC for NetFlow Analyzer

    Follow these steps to configure Juniper flow monitoring with NetFlow Analyzer:

    The following example demonstrates how to configure Junos Traffic Vision for flow monitoring

    Enabling the Services Interface Card

    set interfaces ms-2/0/0 unit 0 family inet

    Configuring the Template and Timers

    set services flow-monitoring version9 template template1
    set services flow-monitoring version9 template template1 flow-active-timeout 120
    set services flow-monitoring version9 template template1 flow-inactive-timeout 60
    set services flow-monitoring version9 template template1 ipv4-template
    set services flow-monitoring version9 template template1 template-refresh-rate packets 100
    set services flow-monitoring version9 template template1 template-refresh-rate seconds 600
    set services flow-monitoring version9 template template1 option-refresh-rate packets 100
    set services flow-monitoring version9 template template1 option-refresh-rate seconds 600

    Configuring Service Set Properties

    set services service-set ss1 jflow-rules sampling
    set services service-set ss1 sampling-service service-interface ms-2/0/0.0

    Configuring Forwarding Options and Flow Server Settings

    set forwarding-options sampling input rate 10
    set forwarding-options sampling input run-length 18
    set forwarding-options sampling family inet output flow-server 10.44.4.3 port 1055
    set forwarding-options sampling family inet output flow-server 10.44.4.3 version9 template template1
    set forwarding-options sampling family inet output interface ms-2/0/0.0 source-address 203.0.113.1

    Step-by-Step Procedure

    The following example requires you to navigate through multiple levels of the configuration hierarchy.

    1. Configure the services interface.

    2. [edit interfaces] user@router1# set interfaces ms-2/0/0 unit 0 family inet
      user@router1# set interfaces ms-2/0/0 unit 1 family inet6
      user@router1# set interfaces ms-2/0/0 unit 2 family mpls

    3. Configure the template properties and the export policy timers.

    4. [edit services]
      user@router1# set flow-monitoring version9 template template1
      user@router1# set flow-monitoring version9 template template1 flow-active-timeout 120
      user@router1# set flow-monitoring version9 template template1 flow-inactive-timeout 60
      user@router1# set flow-monitoring version9 template template1 ipv4-template
      user@router1# set flow-monitoring version9 template template1 template-refresh-rate packets 100
      user@router1# set flow-monitoring version9 template template1 template-refresh-rate seconds 600
      user@router1# set flow-monitoring version9 template template1 option-refresh-rate packets 100
      user@router1# set flow-monitoring version9 template template1 option-refresh-rate seconds 600

    5. Configure service set properties.

    6. [edit services]
      user@router1# set service-set ss1 jflow-rules sampling
      user@router1# set service-set ss1 sampling-service service-interface ms-2/0/0.0

    7. Configure forwarding options and flow-server properties.

    8. [edit forwarding-options]
      user@router1# set sampling input rate 10
      user@router1# set sampling input run-length 18
      user@router1# set sampling family inet output flow-server 10.44.4.3 port 1055
      user@router1# set sampling family inet output flow-server 10.44.4.3 version9 template template1
      user@router1# set sampling family inet output interface ms-2/0/0.0 source-address 203.0.113.1

    Note: You can specify the sampling parameters either at the global level (as shown in this example) or at the FPC level by defining a sampling instance. To define a sampling instance, include the instance statement at the [edit forwarding-options sampling] hierarchy level, and the sampling-instance statement at the [edit chassis fpc number] hierarchy level to associate the sampling instance with an FPC. Under the [edit forwarding-options sampling instance instance] hierarchy level, you must also include the input and output configurations explained in this step.

    For more details on the configuration, visit Juniper's jFlow v9 configuration page.

    Thank you for your feedback!

    Was this content helpful?

    We are sorry. Help us improve this page.

    How can we improve this page?
    Do you need assistance with this topic?
    By clicking "Submit", you agree to processing of personal data according to the Privacy Policy.