Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
flow
record
flow-record-name
Device(config)# flow record FLOW-RECORD-2
|
Creates a flow record and enters Flexible NetFlow flow record configuration mode.
|
Step 4 |
description
description
Device(config-flow-record)# description Used for IPv4 multicast traffic analysis
|
(Optional) Creates a description for the flow record.
|
Step 5 |
match
routing
is-multicast
Device(config-flow-record)# match routing is-multicast
|
Configures IPv4 multicast destination addresses (indicating that the IPv4 traffic is multicast traffic) as a key field for
the flow record.
|
Step 6 |
Add key fields for the record as required using other
match commands.
|
For information about the other
match commands that are available to configure key fields, refer to the
Cisco IOS Flexible NetFlow Command Reference.
|
Step 7 |
collect
counter
{bytes
replicated [long ] |
packets
replicated [long ]}
Device(config-flow-record)# collect counter packets replicated
|
Configures the number of bytes or packets multiplied by the multicast replication factor (number of interfaces the multicast
traffic is forwarded over) as a nonkey field.
|
Step 8 |
collect
routing
multicast
replication-factor
Device(config-flow-record)# collect routing multicast replication-factor
|
Configures the multicast replication factor (number of interfaces over which multicast traffic is forwarded) as a nonkey
field.
|
Step 9 |
Add nonkey fields for the record as required using other
collect commands.
|
For information about the other
collect commands that are available to configure nonkey fields, refer to the Cisco IOS Flexible NetFlow Command Reference.
|
Step 10 |
exit
Device(config-flow-record)# exit
|
Exits Flexible NetFlow flow record configuration mode and returns to global configuration mode.
|
Step 11 |
flow
monitor
monitor-name
Device(config)# flow monitor FLOW-MONITOR-2
|
Creates a flow monitor and enters Flexible NetFlow flow monitor configuration mode.
|
Step 12 |
description
description
Device(config-flow-monitor)# description Used for IPv4 multicast traffic analysis
|
(Optional) Creates a description for the flow monitor.
|
Step 13 |
record
record-name
Device(config-flow-monitor)# record FLOW-RECORD-2
|
Specifies the record for the flow monitor.
|
Step 14 |
exit
Device(config-flow-record)# exit
|
Exits Flexible NetFlow flow monitor configuration mode and returns to global configuration mode.
|
Step 15 |
interface
type
number
Device(config)# interface ethernet 0/0
|
Specifies an interface and enters interface configuration mode.
|
Step 16 |
ip
flow
monitor
monitor-name
[multicast |
unicast ] {input |
output }
Device(config-if)# ip flow monitor FLOW-MONITOR-2 input
|
Activates the flow monitor that was created previously by assigning it to the interface to analyze traffic.
-
To monitor only multicast traffic, use the
multicast keyword.
-
Default: Unicast traffic and multicast traffic are monitored.
|
Step 17 |
Repeat Steps 15 and 16 to activate a flow monitor on any other interfaces in the networking device over which you want to
monitor traffic.
|
|
Step 18 |
end
|
Exits interface configuration mode and returns to privileged EXEC mode.
|
Step 19 |
show
flow
monitor
[[name ]
monitor-name [cache [format {csv |
record |
table }]][statistics ]]
Device# show flow monitor FLOW-MONITOR-2 cache
|
(Optional) Displays the status and statistics for a Flexible NetFlow flow monitor.
|