412
Default
No IP address is configured for the sFlow agent. The device periodically identifies whether the sFlow
agent has an IP address. If the sFlow agent does not have an IP address, the device automatically
selects an IPv4 address for the sFlow agent. It does not save the IPv4 address in the configuration
file.
Views
System view
Predefined user roles
network-admin
Parameters
ip ipv4-address: Specifies an IPv4 address for the sFlow agent.
ipv6 ipv6-address: Specifies an IPv6 address for the sFlow agent.
Usage guidelines
As a best practice, manually configure an IP address for the sFlow agent.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Specify IP address 10.10.10.1 for the sFlow agent.
<Sysname> system-view
[Sysname] sflow agent ip 10.10.10.1
sflow collector
Use sflow collector to configure parameters for an sFlow collector.
Use undo sflow collector to remove an sFlow collector.
Syntax
sflow collector collector-id [ vpn-instance vpn-instance-name ] { ip ipv4-address | ipv6
ipv6-address } [ port port-number ] [ datagram-size size ] [ time-out seconds ] [ description string ]
undo sflow collector collector-id
Default
No sFlow collector information is configured.
Views
System view
Predefined user roles
network-admin
Parameters
collector-id: Specifies an sFlow collector by its ID. The value range for this argument is 1 to 10.
vpn-instance vpn-instance-name: Specifies a VPN instance by its name for the sFlow collector. A
VPN instance name is a case-sensitive string of 1 to 31 characters and cannot contain spaces. By
default, the sFlow collector belongs to the public network.
ip ipv4-address: Specifies an IPv4 address for the sFlow collector.
ipv6 ipv6-address: Specifies an IPv6 address for the sFlow collector.