Procedure Configuring Flexible NetFlow Applying a Flow to an Interface Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device(config)# configure terminal Enters global configuration mode. Step 3 interface type Example: Device(config)# interface GigabitEthernet1/0/1 Enters interface configuration mode and configures an interface. Flexible NetFlow is not supported on the L2 port-channel interface, but is supported on the L2 port-channel member ports. Flexible NetFlow is supported on the L3 port-channel interfaces and member ports but not on both at the same time.
Step 4 {ip flow monitor | ipv6 flow monitor | datalink flow monitor} name [sampler name] {input | output} Example: Device(config-if)# ip flow monitor MonitorTest input Associates an IPv4, IPv6 and datalink flow monitor, and an optional sampler to the interface for input or output packets. ip flow monitor – Enables Flexible NetFlow to monitor IPv4 traffic. ipv6 flow monitor – Enables Flexible NetFlow to monitor IPv6 traffic. datalink flow monitor – Enables Flexible NetFlow to monitor non-IP traffic. Note You can associate multiple monitors to an interface in both input and output directions. Step 5 end Example: Device(config-flow-monitor)# end Returns to privileged EXEC mode.
Step 6 show flow interface [interface-type number] Example: Device# show flow interface (Optional) Displays information about NetFlow on an interface. Configuring Flexible NetFlow 29