Posted by: manilageek | May 30, 2013

Enable Netflow on 4500 Cisco Switch

#conf t

flow record NETFLOW_RECORD

match ipv4 protocol

match ipv4 source address

match ipv4 destination address

match transport source-port

match transport destination-port

collect interface input

collect interface output

collect counter bytes long

collect counter packets long

collect timestamp sys-uptime first

collect timestamp sys-uptime last

!

!destination is your SNMP server e.g. Orion

flow exporter NETFLOW_EXPORTER

destination 192.168.YY.XXX

source Vlan256

transport udp 2055

template data timeout 60

!

!

flow monitor NETFLOW_MONITOR

record NETFLOW_RECORD

exporter NETFLOW_EXPORTER

cache timeout active 60

cache entries 1000

!

!For Vlan1

vlan configuration 1

ip flow monitor NETFLOW_MONITOR input

!

!For Vlan100

Vlan configuration 100

ip flow monitor NETFLOW_MONITOR input

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Categories

%d bloggers like this: