Example - Cisco Catalyst 4500 Series Configuration Manual

Release ios xe 3.3.0sg and ios 15.1(1)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 61
Configuring NetFlow-lite
Command
Step 5
Switch(config-netflow-lite-sampler)# packet-offset
offset
Step 6
Switch(config-netflow-lite-sampler)# exit
Step 7
Switch(config)# exit
Step 8
Switch# show netflow-lite sampler sampler

Example

This example shows how to configure sampling parameters and to display the sampler configuration:
Switch# config terminal
Switch(config)# netflow-lite sampler sampler1
Switch(config-netflow-lite-sampler)# packet-rate 32
Switch(config-netflow-lite-sampler)# packet-section size 128
Switch(config-netflow-lite-sampler)# packet-offset 16
Switch(config-netflow-lite-sampler)# exit
Switch(config)# exit
Switch#
Switch# show netflow-lite sampler sampler1
Netflow-lite Sampler sampler1:
Id :
Packet Sampling rate:
Packet Section Size:
Packet offset:
You can verify your settings with the show netflow-lite sampler privileged EXEC command
Usage Guidelines
The packet sampling rate can range from 32 to 2^15 in powers of 2. To troubleshoot two 1 Gigabit ports,
a rate of 1 is allowed. This is equivalent to rx span only. It cannot be configured on 10 Gigabit ports
because the bandwidth demand for export will be too high.
Mandatory parameters are packet rate. A maximum of 2 x 1Gigabit ports can be configured with 1-in-1
sampling. The best packet sampling rate that can be configured on any 1 Gigabit or 10 Gigabit port is
1-in-32. Packet sampling rates can be configured in powers of 2 (like 1-in-64 and 1-in-128).
You can update a sampler at a target interface, but you cannot remove or unconfigure mandatory
parameters.
All mandatory parameters must be present to validate a sampler. Any unspecified non-mandatory
parameters take on default values.
Activating Sampling on an Interface or VLAN
This task defines a monitor instance on an interface or VLAN, identifying the sampler and exporter to
use.
OL-25340-01
Purpose
Specifies a starting packet offset in NetFlow-lite
submode.
Exits NetFlow-lite sampler submode.
Exits global configuration mode.
Displays information about a sampler.
1
1 out of 32
64
bytes
16
bytes
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
Configuring NetFlow Packet Sampling
61-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents