Configuring Huawei CE (sFlow)
This document provides configuration steps for enabling sFlow on Huawei CE devices.
Configuration Steps for sFlow
Enter system view:
system-view
Configure sFlow agent IP:
sflow agent { ip ip-address | ipv6 ipv6-address }
Set the source IP address for sFlow packets:
sflow source { ip ip-address | ipv6 ipv6-address }
Define a sFlow collector:
sflow collector collector-id { MOTADATA_COLLECTOR_IP } [ vpn-instance vpn-instance-name | length length-value | udp-port 6343 | description description ]
Commit the configuration:
commit
Under all interfaces of the device, configure sFlow:
interface interface-type interface-number
sflow sampling { collector { collector-id } &<1-2> | rate rate | length length | inbound | outbound }
sflow counter { collector { collector-id } &<1-2> | interval interval }
Example Configuration
system-view
sflow agent x.x.x.x
sflow source x.x.x.x
sflow collector 1 ip {MOTADATA_COLLECTOR_IP}
interface 10ge 0/1/2
sflow sampling collector 1 rate 1000 inbound outbound
sflow counter collector 1 interval 60
Repeat this configuration for all relevant interfaces on the device.
After completing the configuration, navigate to Menu > Flow Explorer and select the Event Source(s) and the associated Interface(s) from the drop-downs to view the active flow data.