< Home

Configuring sFlow Agent and Collector Information

Context

The sFlow controller's address is the destination address of sFlow packets.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run sflow agent { ip [ vpn-instance vpn-instance-name ] ip-address | ipv6 [ vpn-instance vpn-instance-name ] ipv6-address }

    An IP address is configured for an sFlow agent.

    The specified IP address of an sFlow agent must be a valid unicast address that has been configured on the device interface. If an IPv6 address is specified, the IPv6 address must be a global unicast address, but not a link-local address. By default, the source IP address is the agent's outbound interface address in the route pointing to the collector.

    A maximum of two sFlow agents can be configured in the system. Each VPN instance of an address family supports only one agent.

  3. Run sflow collector collector-id { ip [ vpn-instance vpn-instance-name ] ip-address | ipv6 [ vpn-instance vpn-instance-name ] ipv6-address } [datagram-size datagram-size | port port-num | time-out time ] * [ description description ]

    Parameters are set for an sFlow collector.

    When creating an sFlow collector, specify the ID and IP address. If the aging time of the sFlow collector is not set, the sFlow collector is not aged out by default and the aging time cannot be changed. A maximum of two sFlow collectors can be configured in the system.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >