sflow destination

Configures an sFlow collector for the destination address.
Syntax
sflow destination [ ip-address | ipv6 ipv6-address ] [ udp-port-number ] [ vrf vrf-name ]
no sflow destination [ ip-address | ipv6 ipv6-address ] [ udp-port-number ] [ vrf vrf-name ]
Command Default

An sFlow collector is not configured.

Parameters
ip-address
Specifies the IPv4 destination address.
ipv6 ipv6-address
Specifies the IPv6 destination address.
udp-port-number
Specifies the User Datagram Protocol (UDP) port number. The default value is 6343.
vrf vrf-name
Specifies the Virtual Routing and Forwarding (VRF) name.
Modes

Global configuration mode

Usage Guidelines

sFlow exports traffic statistics to an external collector. You can specify up to four collectors. You can specify more than one collector with the same IP address if the UDP port numbers are unique. You can have up to four unique combinations of IP addresses and UDP port numbers.

By default sFlow uses the management VRF to send the samples to the collector. If no management VRF is configured, sFlow uses the default VRF, and this default VRF ID will be assigned to any configured collector that does not have a user-included VRF.

sFlow-forwarding ports can come from ports that belong to any VRF. The port does not have to be in the same VRF as the collector. sFlow collects packets from all sFlow-forwarding ports, even if they do not belong to a VRF, compiles the packets into the sFlow samples, and sends the samples to the particular collector with no filtering for VRF membership.

The no form of the command configures the management VRF to send the samples to the collector.

Examples

The following example configures an sFlow collector and specifies a VRF.

device(config)# sflow destination 10.10.10.10 vrf customer1