3.
Configure flow sampling:
# Set the Flow sampling mode and sampling interval.
[Device-GigabitEthernet1/0/1] sflow sampling-mode random
[Device-GigabitEthernet1/0/1] sflow sampling-rate 4000
# Specify sFlow collector 2 for flow sampling.
[Device-GigabitEthernet1/0/1] sflow flow collector 2
# Display the sFlow configuration and operation information.
[Device-GigabitEthernet1/0/1] display sflow
sFlow Version: 5
sFlow Global Information:
Agent
Collector Information:
ID
1
2
3
4
5
6
7
8
9
10
sFlow Port Information:
Interface CID
GE1/0/1
The output shows that GigabitEthernet 1/0/1 enabled with sFlow is active, the counter sampling interval
is 120 seconds, the Flow sampling interval is 4000, all of which indicate sFlow operates normally.
Troubleshooting sFlow configuration
Symptom
The remote sFlow collector cannot receive sFlow packets.
Analysis
•
The sFlow collector has no IP address specified.
No interface is enabled with sFlow to sample data.
•
The IP address of the sFlow collector specified on the sFlow agent is different from that of the remote
•
sFlow collector.
IP:3.3.3.1(CLI)
IP
3.3.3.2
Interval(s) FID
2
120
Port
6343
6543
6343
6343
6343
6343
6343
6343
6343
6343
MaxHLen
Rate
2
128
4000
161
Aging
Size
Description
0
1400
N/A
1400
netserver
0
1400
0
1400
0
1400
0
1400
0
1400
0
1400
0
1400
0
1400
Mode
Status
Random
Active