Cisco Systems 4500 Switch User Manual


  Open as PDF
of 1504
 
55-6
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 55 Configuring NetFlow-lite
Configuring NetFlow Packet Sampling
To activate sampling on an interface, perform this task:
To activate sampling on an interface, perform this task:
Examples
The following example shows how to configure a monitor on a port interface Gigabit 1/3:
Switch# config terminal
Switch(config)# int GigabitEthernet1/3
Switch(config-if)# netflow-lite monitor 1
Switch(config-netflow-lite-monitor)# sampler sampler1
Switch(config-netflow-lite-monitor)# average-packet-size 128
Command Purpose
Step 1
Switch# config terminal
Enters configuration mode.
Step 2
Switch(config)# interface interface-id
Enters interface configuration mode.
Step 3
Switch(config-if)# netflow-lite monitor monitor
Defines a monitor instance on an interface and enters
NetFlow-lite monitor submode.
Step 4
Switch(config-netflow-lite-monitor)# sampler sampler
Activates sampling on an interface in NetFlow-lite
monitor submode.
Step 5
Switch(config-netflow-lite-monitor)# exporter
exporter
Assigns an exporter in NetFlow-lite monitor
submode
Step 6
Switch(config-netflow-lite-monitor)#
average-packet-size size
Specifies the average packet size at the observation
point in NetFlow-lite monitor submode.
Step 7
Switch(config-netflow-lite-monitor)# exit
Exits NetFlow-lite monitor submode.
Step 8
Switch(config)# exit
Exits global configuration mode.
Step 9
Switch# show netflow-lite monitor monitor interface
interface-name
Displays information about a particular packet or per
data source stats.
Command Purpose
Step 1
Switch# config terminal
Enters configuration mode.
Step 2
Switch(config)# vlan config 2
Enters interface configuration mode.
Step 3
Switch(config-vlan-config)# netflow-lite monitor
monitor
Defines a monitor instance on an interface and enters
NetFlow-lite monitor submode.
Step 4
Switch(config-netflow-lite-monitor)#
average-packet-size size
Specifies the average packet size at the observation
point in NetFlow-lite monitor submode.
Step 5
Switch(config-netflow-lite-monitor)# exporter
exporter
Assigns an exporter in NetFlow-lite monitor
submode.
Step 6
Switch(config-netflow-lite-monitor)# sampler sampler
Activates sampling on an interface in NetFlow-lite
monitor submode.
Step 7
Switch(config-netflow-lite-monitor)# exit
Exits NetFlow-lite monitor submode
Step 8
Switch(config)# exit
Exits global configuration mode.
Step 9
Switch# show netflow-lite monitor monitor vlan vlan
Displays information about a particular packet or per
data source stats.