Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

flow-key (Flow Monitoring)

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
flow-key {
    flow-direction;
    vlan-id;
    output-interface;
}

Hierarchy Level

content_copy zoom_out_map
[edit services flow-monitoring version9 template template-name],
[edit services flow-monitoring version-ipfix template template-name]

Description

Include VLAN IDs in both the ingress and egress directions in the flow key, enable flow direction information in a Version 9 or IPFIX flow template, or both, and configure the output-interface for bridge or VPLS family for inline flow monitoring on the MX Series.

Options

flow-direction

Enable reporting of the direction of the flow. The field contains 0x00 (ingress) or 0x01 (egress). The flow direction field in the output record contains the invalid value 0xFF if you do not configure flow-direction.

vlan-id

Include VLAN IDs in both the ingress and egress directions in the flow key.

output-interface

Configure the output-interface field as part of flow-key for bridge or VPLS family.

Note:

If the output-interface (OIF) is configured under flow-key while the flow-monitoring is in progress, all the existing flows (where OIF was not part of flow-key) report OIF field as zero in the next export. Therefore, in progress configuration of output-interface as part of flow-key is not recommended. In order to configure output-interface as part of flow-key, it is recommended to disable the bridge or vpls sampling and wait for the active flows to become zero.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 15.2.

output-interface option added in Junos OS Release 18.2R1.

footer-navigation