Configuring the sFlow agent and sFlow collector information
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure an IP address for the sFlow agent. | sflow agent { ip ip-address | ipv6 ipv6-address } | Optional. Not specified by default. The device periodically checks whether the sFlow agent has an IP address. If the sFlow agent has no IP address configured, the device automatically selects an interface IP address for the sFlow agent but does not save the IP address. NOTE:
|
3. Configure the sFlow collector information. | sflow collector collector-id { [ vpn-instance vpn-instance-name ] { ip ip-address | ipv6 ipv6-address } | datagram-size size | description text | port port-number | time-out seconds } * | By default, the device presets a certain number of sFlow collectors. Use display sflow to display the parameters of the preset sFlow collectors. |
4. Specify the source IP address of sFlow packets. | sflow source { ip ip-address | ipv6 ipv6-address } * | Optional. Not specified by default. |