Examples - 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

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.3.0SG and IOS 15.1(1)SG
61-6
Chapter 61
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-25340-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents