Examples - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Configuring NetFlow Packet Sampling
To activate sampling on an interface, perform this task:
Command
Step 1
Switch# config terminal
Step 2
Switch(config)# interface interface-id
Step 3
Switch(config-if)# netflow-lite monitor monitor
Step 4
Switch(config-netflow-lite-monitor)# sampler sampler
Step 5
Switch(config-netflow-lite-monitor)# exporter
exporter
Step 6
Switch(config-netflow-lite-monitor)#
average-packet-size size
Step 7
Switch(config-netflow-lite-monitor)# exit
Step 8
Switch(config)# exit
Step 9
Switch# show netflow-lite monitor monitor interface
interface-name
To activate sampling on a VLAN, perform this task:
Command
Step 1
Switch# config terminal
Step 2
Switch(config)# vlan config 2
Step 3
Switch(config-vlan-config)# netflow-lite monitor
monitor
Step 4
Switch(config-netflow-lite-monitor)#
average-packet-size size
Step 5
Switch(config-netflow-lite-monitor)# exporter
exporter
Step 6
Switch(config-netflow-lite-monitor)# sampler sampler
Step 7
Switch(config-netflow-lite-monitor)# exit
Step 8
Switch(config)# exit
Step 9
Switch# show netflow-lite monitor monitor vlan vlan

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
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
64-6
Chapter 64
Purpose
Enters configuration mode.
Enters interface configuration mode.
Defines a monitor instance on an interface and enters
NetFlow-lite monitor submode.
Activates sampling on an interface in NetFlow-lite
monitor submode.
Assigns an exporter in NetFlow-lite monitor
submode
Specifies the average packet size at the observation
point in NetFlow-lite monitor submode.
Exits NetFlow-lite monitor submode.
Exits global configuration mode.
Displays information about a particular packet or per
data source stats.
Purpose
Enters configuration mode.
Enters interface configuration mode.
Defines a monitor instance on an interface and enters
NetFlow-lite monitor submode.
Specifies the average packet size at the observation
point in NetFlow-lite monitor submode.
Assigns an exporter in NetFlow-lite monitor
submode.
Activates sampling on an interface in NetFlow-lite
monitor submode.
Exits NetFlow-lite monitor submode
Exits global configuration mode.
Displays information about a particular packet or per
data source stats.
Configuring NetFlow-lite
OL_28731-01

Advertisement

Table of Contents
loading

Table of Contents