Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
flow
record
record-name
Device(config)# flow record FLOW-MONITOR-1
|
Creates a flow record and enters Flexible NetFlow flow record configuration mode.
|
Step 4 |
match
ipv4 source address
Router(config-flow-record)# match ipv4 source address
|
Identifies the IPv4 source address as a match criterion.
|
Step 5 |
match
ipv4 destination address
Router(config-flow-record)# match ipv4 destination address
|
Identifies the IPv4 destination address as a match criterion.
|
Step 6 |
match
application name
Router(config-flow-record)# match application name
|
Identifies the application name as a match criterion.
|
Step 7 |
exit
Router(config-flow-record)# exit
|
Exits Flexible NetFlow flow record configuration mode and returns to global configuration mode.
|
Step 8 |
flow
monitor
monitor-name
Device(config)# flow monitor FLOW-MONITOR-1
|
Creates a flow monitor and enters Flexible NetFlow flow monitor configuration mode.
|
Step 9 |
description
description
Device(config-flow-monitor)# description Used for basic traffic analysis
|
(Optional) Creates a description for the flow monitor.
|
Step 10 |
exit
Router(config-flow-monitor)# exit
|
Exits Flexible NetFlow flow monitor configuration mode and returns to global configuration mode.
|
Step 11 |
sampler
sampler-name
Device(config)# sampler sm_1
|
Creates a flow sampler and enters Flexible NetFlow sampler configuration mode.
|
Step 12 |
exit
Router(config-sampler)# exit
|
Exits Flexible NetFlow sampler configuration mode and returns to global configuration mode.
|
Step 13 |
class-map
class-map-name
Router(config)# class-map cmap
|
Creates a class to be used with a class map and enters QoS class-map configuration mode.
|
Step 14 |
exit
Router(config-cmap)# exit
|
Exits QoS class-map configuration mode and returns to global configuration mode.
|
Step 15 |
policy-map
policy-map-name
Router(config)# policy-map pmap
|
Specifies the name of the policy map to be created and enters QoS policy-map configuration mode.
|
Step 16 |
class
class-map-name
Router(config-pmap)# class cmap
|
Specifies the name of the class of the policy to be created and enters QoS policy-map class configuration mode.
|
Step 17 |
flow
monitor
monitor-name
sampler
sampler-name
Device(config-pmap-c)# flow monitor FLOW-MONITOR-1 sampler sm_1
|
Configures the flow monitor and sampler as a MQC policy map class action.
|
Step 18 |
end
Device(config-pmap-c)# end
|
Exits QoS policy-map class configuration mode and returns to privileged EXEC mode.
|