2.12.2.1 Sampling Rate #
Listing 2.56: Cisco NetFlow Sampling Rate configuration
interface GigabitEthernet0/1 ip flow monitor FLOW-MONITOR input ip flow monitor FLOW-MONITOR output ip flow ingress sampling mode random 1 out-of 10 ip flow egress sampling mode random 1 out-of 10
2.12.2.2 Exporting TCP flags #
Please refer to the collector.flow.nf.tcp_flags
Example of the configuration on Cisco and Juniper devices:
Listing 2.57: Exporting TCP flags as flow keys
Cisco: flow record FLOW-RECORD match ipv4 source address match ipv4 destination address match ip protocol match transport tcp flags collect transport source-port collect transport destination-port
Juniper: set services flow-monitoring version9 template FLOW-RECORD flow-key ipv4-source-address set services flow-monitoring version9 template FLOW-RECORD flow-key ipv4-destination-address set services flow-monitoring version9 template FLOW-RECORD flow-key protocol set services flow-monitoring version9 template FLOW-RECORD flow-key source-port set services flow-monitoring version9 template FLOW-RECORD flow-key destination-port set services flow-monitoring version9 template FLOW-RECORD flow-key tcp-flags






