The remote sFlow collector cannot receive sFlow packets
Symptom
The remote sFlow collector cannot receive sFlow packets.
Analysis
The possible reasons include:
The sFlow collector is not specified.
sFlow is not configured on the interface.
The IP address of the sFlow collector specified on the sFlow agent is different from that of the remote sFlow collector.
No IP address is configured for the Layer 3 interface that sends sFlow packets.
An IP address is configured for the Layer 3 interface that sends sFlow packets. However, the UDP datagrams with this source IP address cannot reach the sFlow collector.
The physical link between the device and the sFlow collector fails.
The sFlow collector is bound to a non-existent VPN.
The length of an sFlow packet is less than the sum of the following two values:
The length of the sFlow packet header.
The number of bytes that flow sampling can copy per packet.
Solution
To resolve the problem:
Use the display sflow command to verify that sFlow is correctly configured.
Verify that a correct IP address is configured for the device to communicate with the sFlow collector.
Verify that the physical link between the device and the sFlow collector is up.
Verify that the VPN bound to the sFlow collector already exists.
Verify that the length of an sFlow packet is greater than the sum of the following two values:
The length of the sFlow packet header.
The number of bytes (as a best practice, use the default setting) that flow sampling can copy per packet.