Connectivity Guide

Congure sFlow sampling rate
OS10(config)# sflow sample-rate 4096
View sFlow packet header size
OS10# show sflow
sFlow services are enabled
Management Interface sFlow services are disabled
Global default sampling rate: 4096
Global default counter polling interval: 20
Global default extended maximum header size: 128 bytes
Global extended information enabled: none
1 collector(s) configured
Collector IP addr:10.16.151.245 Agent IP addr:10.16.132.181 UDP port:6343 VRF:Default
31722 UDP packets exported
0 UDP packets dropped
34026 sFlow samples collected
View sFlow running conguration
OS10# show running-configuration sflow
sflow enable
sflow max-header-size 80
sflow polling-interval 20
sflow sample-rate 4096
sflow collector 10.16.150.1 agent-addr 10.16.132.67 6767 max-datagram-size 800
sflow collector 10.16.153.176 agent-addr 3.3.3.3 6666
!
interface ethernet1/1/1
sflow enable
!
Source interface conguration
You can congure an interface as a source for sFlow. The sFlow agent uses the IP address of the congured source interface as the agent
IP address.
Congure the source interface in CONFIGURATION mode.
sflow source-interface {ethernet node/slot/port[:subport] | loopback loopback-ID| port-
channel port-channel-ID| vlan vlan-ID}
View the interface details.
show running-configuration sflow
show sflow
Congure sFlow source interface
OS10(config)# sflow source-interface ethernet 1/1/1
OS10(config)# sflow source-interface port-channel 1
OS10(config)# sflow source-interface loopback 1
OS10(config)# sflow source-interface vlan 10
View sFlow running conguration
OS10# show running-configuration sflow
sflow enable all-interfaces
sflow source-interface vlan10
sflow collector 5.1.1.1 agent-addr 4.1.1.1 6343
sflow collector 6.1.1.1 agent-addr 4.1.1.1 6343
OS10(config)#show running-configuration interface vlan
!
sFlow
1123