Skip to content

Instantly share code, notes, and snippets.

@BlackMaria
Created May 24, 2013 21:14
Show Gist options
  • Save BlackMaria/5646560 to your computer and use it in GitHub Desktop.
Save BlackMaria/5646560 to your computer and use it in GitHub Desktop.
scattered notes on configuring sflow for ntop & cisco
##################################
## CISCO
NetFlow
##################################
enable
configure terminal
ip
flow-export destination 192.168.1.20 2055 ip flow-export version 5 ip
flow-export source Ethernet0
#
# Enable monitored IF and in both
directions
# Do this for each IF to be monitored
interface Ethernet0
ip route-cache flow
interface Dialer1
ip route-cache flow
# set
sample-rate number
# set polling-interval seconds
##
# 5 minutes
updates
#################################
ip flow-cache timeout active 5
ip
flow-cache timeout inactive 15
snmp-server ifindex persist
# Look at
netflow from switch
#################################
# show ip flow
export
# show ip cache flow
# show ip cache verbose flow
# Don't forget to
write
##################################
## Juniper
sFlow
##################################
protocols {
sflow {
polling-interval 20;
sample-rate {
ingress 100;
egress 100;
}
collector 192.168.1.20 {
udp-port 6343;
}
# for each IF
interfaces ge-0/0/0.0 {
polling-interval 20;
sample-rate {
ingress 100;
egress 100;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment