match interface (Flexible NetFlow)
To configure input and output interfaces as key fields for a flow record, use the match interface command in Flexible NetFlow flow record configuration mode. To disable the use of the input and output interfaces as key fields for a flow record, use the no form of this command.
match interface {input | output}
no match interface {input | output}
Cisco Catalyst 6500 Switches in Cisco IOS Release 12.2(50)SY
match interface {input [physical] | output} [snmp]
no match interface {input [physical] | output} [snmp]
Syntax Description
input |
Configures the input interface as a key field. |
physical |
(Optional) Configures the physical input interface as a key field and enables collecting the input interface from the flows. |
output |
Configures the output interface as a key field. |
snmp |
(Optional) Configures the simple network management protocol (SNMP) index of the input interface as a key field. |
Command Default
The input and output interfaces are not configured as key fields.
Command Modes
Flexible NetFlow flow record configuration (config-flow-record)
Command History
Release |
Modification |
---|---|
12.4(9)T |
This command was introduced. |
12.2(31)SB2 |
This command was integrated into Cisco IOS Release 12.2(31)SB2. |
12.0(33)S |
This command was modified. Support for this command was implemented on the Cisco 12000 series routers. |
12.2(33)SRC |
This command was modified. Support for this command was implemented on the Cisco 7200 series routers. |
12.2(33)SRE |
This command was modified. Support for this command was implemented on the Cisco 7300 Network Processing Engine (NPE) series routers. |
12.2(50)SY |
This command was modified. The physical and snmp keywords were added. |
15.2(2)T |
This command was modified. Support for the Cisco Performance Monitor was added. |
Cisco IOS XE Release 3.5S |
This command was modified. Support for the Cisco Performance Monitor was added. |
Cisco IOS XE Release 3.2SE |
This command was integrated into Cisco IOS XE Release 3.2SE. |
Usage Guidelines
This command can be used with both Flexible NetFlow and Performance Monitor. These products use different commands to enter the configuration mode in which you issue this command, however the mode prompt is the same for both products. For Performance Monitor, you must first enter the flow record type performance-monitor command before you can use this command.
Because the mode prompt is the same for both products, here we refer to the command mode for both products as flow record configuration mode. However, for Flexible NetFlow, the mode is also known as Flexible NetFlow flow record configuration mode; and for Performance Monitor, the mode is also known as Performance Monitor flow record configuration mode.
A flow record requires at least one key field before it can be used in a flow monitor. The key fields differentiate flows, with each flow having a unique set of values for the key fields. The key fields are defined using the match command.
Examples
The following example configures the input interface as a key field:
Router(config)# flow record FLOW-RECORD-1
Router(config-flow-record)# match interface input
The following example configures the output interface as a key field:
Router(config)# flow record FLOW-RECORD-1
Router(config-flow-record)# match interface output
The following example configures the output interface as a key field:
Router(config)# flow record type performance-monitor RECORD-1
Router(config-flow-record)# match interface output