3750-X - Flexible Netflow Configuration
flow record NETFLOW_INGRESS match datalink source-vlan-id match datalink dot1q priority match datalink mac source-address match datalink mac destination-address match ipv4 version match ipv4 tos match ipv4 ttl match ipv4 protocol match ipv4 source address match ipv4 destination address match transport source-port match transport destination-port match interface input physical snmp collect interface output snmp collect counter flows collect counter bytes collect counter packets collect timestamp sys-uptime first collect timestamp sys-uptime last ! ! flow record NETFLOW_EGRESS match datalink destination-vlan-id match datalink dot1q priority match datalink mac source-address match datalink mac destination-address match ipv4 version match ipv4 tos match ipv4 ttl match ipv4 protocol match ipv4 source address match ipv4 destination address match transport source-port match transport destination-port match interface output physical snmp collect interface input snmp collect counter flows collect counter bytes collect counter packets collect timestamp sys-uptime first collect timestamp sys-uptime last ! ! flow exporter NETFLOW_EXPORT destination [[Netflow Collector IP]] source [[Source Interface]] transport udp [[Netflow Port]] option interface-table timeout 60 ! ! flow monitor NETFLOW_INGRESS exporter NETFLOW_EXPORT cache timeout active 60 record NETFLOW_INGRESS ! ! flow monitor NETFLOW_EGRESS exporter NETFLOW_EXPORT cache timeout active 60 record NETFLOW_EGRESS interface [[Layer2 Port]] ip flow monitor NETFLOW_INGRESS layer2-switched input ip flow monitor NETFLOW_EGRESS layer2-switched output References
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/15-0_1_se/configuration/guide/3750xcg/swmnetflow.html



Netflow Collector IP:
Source Interface:
Netflow Port:
Layer2 Port:


Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: