match ipv4
To configure one or more of the IPv4 fields as a key field for a flow record, use the match ipv4 command in
flow record configuration mode. To disable the use of one or more of the IPv4 fields as a key field for a flow
record, use the no form of this command.
match ipv4 {destination address| protocol| source address| tos| ttl| version}
no match ipv4 {destination address| protocol| source address| tos| ttl| version}
Syntax Description
Configures the IPv4 destination address as a key field. For more information
see match ipv4 destination address, on page 447.
destination address
Configures the IPv4 protocol as a key field.protocol
Configures the IPv4 destination address as a key field. For more information
see match ipv4 source address, on page 448.
source address
Configures the IPv4 ToS as a key field.tos
Configures the IPv4 time-to-live (TTL) field as a key field for a flow record.
For more information see match ipv4 ttl, on page 449.
ttl
Configures the IP version from IPv4 header as a key field.version
Command Default
The use of one or more of the IPv4 fields as a key field for a user-defined flow record is not enabled.
Command Modes
Flow record configuration
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SE
Usage Guidelines
A flow record requires at least one key field before it can be used in a flow monitor. The key fields distinguish
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 IPv4 protocol as a key field:
Device(config)# flow record FLOW-RECORD-1
Device(config-flow-record)# match ipv4 protocol
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
446
match ipv4