beautypg.com

Configuring the sflow source interface, Configuring the sflow agent interface, Configuration considerations – Brocade Multi-Service IronWare Switching Configuration Guide (Supporting R05.6.00) User Manual

Page 926

background image

896

Multi-Service IronWare Switching Configuration Guide

53-1003036-02

Configuring and enabling sFlow

23

To change the sampling rate on an individual port, enter a command such as the following at the
configuration level for the port.

Brocade(config-if-e10000-1/1)# sflow sample 8192

Syntax: [no] sflow sample num

The num variable specifies the average number of packets from which each sample will be taken.
The software rounds the value you enter up to the next odd power of 2. The actual sampling rate
becomes one of the values listed in

“Changing the default sampling rate”

.

Configuring the sFlow source interface

sFlow source interface is globally defined for all sFlow destinations. For detailed information about
the sFlow agent, refer to

“sFlow event workflow”

.

Brocade(config)#sflow source [ipv6] [[ethernet | loopback | ve | pos

] |[null0]] []

Syntax: [no] sflow source [ipv6] [[ethernet | loopback | ve | pos interface-id] |[null0]] [udp-port-id]

By default, the sFlow source interface is not specified, and the outgoing interface of an sFlow
packet will be used as the source interface and address. The sFlow source port is 8888 by default.

Use the IPv6 option parameter indicate the IPv6 sFlow source address. If the destination IPv6 type
does not match with the sFlow source IP address then the default behavior will be taken.

The sFlow source UDP for IPv4 is independent of IPv6.

The Null0 option is used to drop the sFlow sample with this source, while maintaining sFlow
statistics.

Configuring the sFlow agent interface

The sFlow agent interface is globally defined for all sFlow destinations.

Configuration considerations

By default, the sFlow agent is not specified, and the sFlow datagram will use the router ID as
the agent ID.

The user has the ability to configure the sFlow agent interface for IPv4 and IPv6.

Brocade(config)#sflow agent [ipv6] [[ethernet | loopback | ve | pos

]

Syntax: [no] sflow agent [ipv6] [[ethernet | loopback | ve | pos interface-id]

The [ipv6] command will indicate IP version 6 from the configured interface ID. The optional
keyword will be followed by the interface type.

The command no sflow agent< > removes the specified agent interface and reassigns the agent-IP
to the router-ID as in the default behavior.