Friday, August 31, 2012

Configuring Cisco switches

The following commands configure a Cisco switch (, sampling packets at 1-in-5000, polling counters every 20 seconds and sending sFlow to an analyzer ( over UDP using the default sFlow port (6343):

switch# configure terminal
switch(config)# feature sflow
switch(config)# sflow agent-ip
switch(config)# sflow sampling-rate 5000
switch(config)# sflow counter-poll-interval 20
switch(config)# sflow collector-ip vrf default
switch(config)# sflow data-source interface ethernet 1/1
switch(config)# sflow data-source interface ethernet 1/24
switch(config)# copy running-config startup-config

A previous posting discussed the selection of sampling rates. Additional information can be found on the Cisco web site.

See Trying out sFlow for suggestions on getting started with sFlow monitoring and reporting.

No comments:

Post a Comment