Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring Inline Active Flow Monitoring on MX Series and T4000 Routers

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Configuring Template Properties

Configuring a Sampling Instance

Configuring FPC Parameters

Configuring Firewall Filters

Configuring Interface Properties

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

  1. Configure the template properties for inline active flow monitoring.

  2. Configure the sampling instance for inline active flow monitoring.

    Note:

    Until you complete the next step for associating the sampling instance with an FPC, the instance remains inactive and is marked inactive in the configuration.

  3. Associate the sampling instance with the FPC on which you want to implement inline active flow monitoring, and also configure the hash table sizes.

    Note:

    In Junos OS releases earlier than Release 12.1, the following conditions are applicable for supporting backward compatibility when you configure the IPv4 and IPv6 flow table sizes for inline active flow monitoring:

    • If you do not configure the flow-table-size statement at the [edit chassis fpc slot-number inline-services] hierarchy level, fifteen 256K entries are allocated by default for the IPv4 flow table and one 1K entry is allocated by default for the IPv6 flow table on the Packet Forwarding Engine.

    • If you configure the ipv4-flow-table-size size statement at the [edit chassis fpc slot-number inline-services flow-table-size] hierarchy level and do not configure the ipv6-flow-table-size size statement at the [edit chassis fpc slot-number inline-services flow-table-size] hierarchy level, the number of units of 256K entries that you configure for the IPv4 flow table is allocated. For the IPv6 flow table, a default size of one 1K entry is allocated on the Packet Forwarding Engine.

    • If you do not configure the ipv4-flow-table-size size statement at the [edit chassis fpc slot-number inline-services flow-table-size] hierarchy level and if you configure the ipv6-flow-table-size size statement at the [edit chassis fpc slot-number inline-services flow-table-size] hierarchy level, the number of units of 256K entries that you configure for the IPv6 flow table is allocated. For the IPv4 flow table, a default size of one 1K entry is allocated on the Packet Forwarding Engine.

    • If you configure the sizes of both the IPv4 and IPv6 flow tables, the flow tables are created on the Packet Forwarding Engine based on the size that you specified.

    Note:

    When you configure inline active flow monitoring for VPLS flows, include the vpls-flow-table-size statement.

  4. Configure firewall filters.

  5. Associate the firewall filters configured in the previous step with the interfaces on which you want to set up inline active flow monitoring.

  6. Commit the configuration.

Results

From the configuration mode, confirm your configuration by entering show services flow-monitoring, show forwarding-options sampling, show chassis fpc 0, show firewall, and show interfaces commands. If the output does not display the intended configuration, repeat the instructions in the example to correct the configuration.

  • show services flow-monitoring

  • show forwarding-options sampling

  • show chassis fpc 0

  • show firewall

  • show interfaces

Software and Hardware Requirements

  • An MX Series router other than MX80

  • Junos OS Release 13.2 or later.

    Note:
    • Junos OS Releases earlier than 13.2 also support inline active flow monitoring. However, some of the features discussed in this example are not supported on previous releases.

    • You need Junos OS Release 14.2 or later for configuring inline active flow monitoring on T4000 routers with Type 5 FPC.

Overview

Inline active flow monitoring enables you to configure active sampling without making use of a services DPC. This topic explains the basic configuration for enabling inline active flow monitoring for IPv4 and IPv6 flows. You can also configure inline active flow monitoring for VPLS flows. To configure inline active flow monitoring for VPLS flows, you must specify the family as vpls and include vpls-template at the [edit services flow-monitoring version-ipfix template template-name] hierarchy level.