1-8
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-25303-03
Chapter 1 Configuring Flexible NetFlow
Configuring Flexible NetFlow
This example shows how to apply a flow monitor to an interface:
Switch(config)# interface gigabitethernet 1/1/2
Switch(config-if)# ip flow monitor FLOW-MONITOR-1 input
Switch(config-if)# ip flow monitor FLOW-MONITOR-2 output
Switch(config-if)# end
This is an example of output from the show flow interface command:
Switch# show flow interface gigabitethernet 1/1/2
Interface Gigabit Ethernet1/1/2
FNF: monitor: FLOW-MONITOR-1
direction: Input
traffic(ip): on
FNF: monitor: FLOW-MONITOR-2
direction: Input
traffic(ipv6): on
Step 3
{ip | ipv6} flow monitor monitor -name
[layer2-switched | multicast | sampler |
unicast]
{input | output}
Activates a previously created flow monitor by assigning it to the
interface to analyze incoming or outgoing traffic.
• ip—Enter in records matching IPv4 IP addresses.
• ipv6—Enter in records matching IPv6 IP addresses.
Note This keyword is visible only when the dual IPv4 and IPv6 Switch
Database Management (SDM) template is configured on the
switch.
• layer2-switched—(Optional) Apply the flow monitor on Layer 2
switched traffic.
• multicast—(Optional) Apply the flow monitor on multicast traffic.
• sampler—(Optional) Apply the flow monitor sampler.
• unicast—(Optional) Apply the flow monitor on unicast traffic.
• input—Apply the flow monitor on input traffic.
• output—Apply the flow monitor on output traffic.
Step 4
exit Returns to global configuration mode.
Step 5
Repeat steps 2 and 3 to configure
additional cache parameters for the flow
monitor.
Step 6
end Returns to privileged EXEC mode.
Step 7
show flow interface interface-id (Optional) Verifies that the Flexible NetFlow is configured on the
interface.
Step 8
show flow monitor name monitor -name
cache
(Optional) Displays data in the flow monitor cache.
Step 9
copy running-config startup-config (Optional) Saves your entries in the configuration file.
Command Purpose