sflow source

Configures the sFlow source interface (IPv4 or IPv6) from which the IP source address is selected for the sFlow datagram.
Syntax
sflow source [ ipv6 ] { ethernet stackid/slot/port | ve ve-number | loopback number }
no sflow source [ ipv6 ] { ethernet stackid/slot/port | ve ve-number | loopback number }
Command Default

The sFlow source is not configured. The IP address of the outgoing interface is used in the sFlow datagram.

Parameters
ipv6
Configures the IPv6 interface as the sFlow source. If ipv6 is not specified, the IPv4 interface is automatically configured as the sFlow source.
ethernet stackid/slot/port
Configures an Ethernet interface as the sFlow source interface.
ve ve-number
Configures a virtual interface (VE) as the sFlow source interface.
loopback number
Configures a loopback interface as the sFlow source interface.
Modes

Global configuration mode

Usage Guidelines

At any time, only one source of the Ethernet, VE, or loopback interface can be specified as the source interface.

The first IP address in the interface IP address list is considered the source IP address. Upon configuring another source for an IPv4 or IPv6 address, any previously configured source for the IPv4 or IPv6 address will be deleted. You can configure IPv4 and IPv6 source interfaces independently.

If the sFlow destination is IPv6, and the sFlow source is configured for an IPv6 address, then an IPv6 address will be selected from the configured interface. If the sFlow destination is IPv4, and the sFlow source is configured for an IPv4 address, then an IPv4 address will be selected from the configured interface.

The no form of the command removes the sFlow source configuration from the interface and restores the default behavior of using IP address of the outgoing interface as the source IP address of the sFlow datagram.

Examples

The following example configures an Ethernet interface to be used as the sFlow source IPv6 interface.

device(config)# sflow source ipv6 ethernet 1/1/2

The following example configures an Ethernet interface to be used as the sFlow source IPv4 interface.

device(config)# sflow source ethernet 1/1/3
History
Release version Command history
08.0.30 This command was introduced.