cisco — Creating a Flow Record

Procedure Configuring Flexible NetFlow Creating a Flow Record Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 flow record record-name Example: Device(config)# flow record FLOW-RECORD-1 Creates a flow record and enters Flexible NetFlow flow record configuration mode. • This command also allows you to modify an existing flow record. Step 4 description description Example: Device(config-flow-record)# description Used for basic traffic analysis (Optional) Creates a description for the flow record.

Step 5 match {ip | ipv6} {destination | source} address Example: Device(config-flow-record)# match ipv4 destination address Note This example configures the IPv4 destination address as a key field for the record. Step 6 Repeat Step 5 as required to configure additional key fields for the record. — Step 7 match flow cts {source | destination} group-tag Example: Device(config-flow-record)# match flow cts source group-tag Device(config-flow-record)# match flow cts destination group-tag Note This example configures the CTS source group tag and destination group tag as a key field for the record.

For information about the other key fields available for the match ipv4/ipv6 command, and the other match commands that are available to configure key fields. Note • Egress: • If either propagate SGT or CTS is disabled on the egress interface, then SGT will be zero. Configuring Flexible NetFlow 21