sflow agent-ip

Configures an arbitrary IPv4 or IPv6 address as the sFlow agent IP address.
Syntax
sflow agent-ip { ipv4-addr | ipv6-addr }
no sflow agent-ip { ipv4-addr | ipv6-addr }
Command Default

By default, the device automatically selects the sFlow agent IP address based on the configuration.

Parameters
ipv4-addr
Specifies an IPv4 address as the sFlow agent IP address.
ipv6-addr
Specifies an IPv6 address as the sFlow agent IPv6 address.
Modes

Global configuration mode

Usage Guidelines

The sampled sFlow data that is sent to the collectors includes an agent_address field. This field identifies the device (the sFlow agent) that sent the data. By default, the device automatically selects the sFlow agent IP address based on the configuration. Alternatively, you can configure the device to use an arbitrary IPv4 or IPv6 address as the sFlow agent IP address instead.

The no form of the command removes the configured IPv4 or IPv6 address as the sFlow agent IP address.

Examples

The following example configures an IPv4 address as the sFlow agent IP address.

device(config)# sflow agent-ip 10.10.10.1

The following example configures an IPv6 address as the sFlow agent IP address.

device(config)# sflow agent-ip FE80::240:D0FF:FE48:4672