Procedure
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
switch# configure terminal
switch(config)#
Step 1
Enters interface configuration mode. The interface
type can be Ethernet (including subinterfaces), port
channel, or VLAN interface.
interface interface-type slot/port
Example:
switch(config)# interface ethernet
2/1
Step 2
Associates an IPv4 flow monitor and a sampler to
the interface for input packets. You can enter up to
ip flow monitor name input sampler name
Example:
switch(config-if)# ip flow monitor
testmonitor input sampler testsampler
Step 3
63 alphanumeric characters for the flow monitor
name and the sampler name.
Associates an IPv6 flow monitor and a sampler to
the interface for input packets. You can enter up to
ipv6 flow monitor name input sampler
name
Step 4
63 alphanumeric characters for the flow monitor
name and the sampler name.
Example:
switch(config-if)# ipv6 flow monitor
testmonitorv6 input sampler
testsamplerv6
Associates a Layer 2-switched flow monitor and a
sampler to the interface for input packets. You can
layer2-switched flow monitor name input
sampler name
Step 5
enter up to 63 alphanumeric characters for the flow
monitor name and the sampler name.
Example:
switch(config-if)# layer2-switched
flow monitor testmonitorl2 input
sampler testsamplerl2
Returns to global configuration mode.exit
Example:
switch(config-if)# exit
Step 6
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Step 7
Configuring Bridged NetFlow on a VLAN
You can apply a flow monitor and a sampler to a VLAN.
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
272 OL-31641-01
Configuring NetFlow
Configuring Bridged NetFlow on a VLAN