How to configure sFlow agent and sFlow collector on a CE series switch

The Sampled Flow (sFlow) system involves an sFlow agent embedded in a Huawei switch and a remote sFlow collector. The sFlow agent obtains traffic statistics from an interface using sampling and encapsulates them into sFlow packets. The collector analyzes the sFlow packets received from the agent and displays traffic statistics in a report.

# Set the IP addresses of an sFlow agent and collector to 10.1.1.1 and 10.1.2.1 respectively, and set the sFlow packet sending mode to enhanced. Retain the default packet length 1400.
system-view
[~HUAWEI] sflow agent ip 10.1.1.1
[*HUAWEI] sflow collector 1 ip 10.1.2.1 enhanced
[*HUAWEI] commit

Note:
1. The enhanced mode is supported by only CE12800 series switches. In V100R500C10 and V100R500C00, the enhanced mode is recommended when the collector is located on the network connected to a service port. In the enhanced mode, the switch sends sFlow packets to the collector through service cards. In V100R006C00 and later versions, you do not need to configure the enhanced mode. The switch will determine to send sFlow packets through the management port or service cards based on the routing information on the collector.
2. In the enhanced mode, the switch cannot send sFlow packets through the management port.

Scroll to top