beautypg.com

Displaying and maintaining sflow, Sflow configuration example, Network requirements – H3C Technologies H3C S7500E Series Switches User Manual

Page 180

background image

11-3

To do…

Use the command…

Remarks

Specify the number of packets out

of which the interface will sample a

packet

sflow sampling-rate rate

Optional

200000 by default, that is, one out

of every 200000 packets is

sampled.

z

The sFlow agent and sFlow collector must not have the same IP address.

z

Currently, you can specify at most two sFlow collectors on the device.

z

The sFlow agent and sFlow collector must be configured with the same version of IP addresses.

Displaying and Maintaining sFlow

To do…

Use the command…

Remarks

Display sFlow configuration

information (on a distributed

device)

display sflow [ slot slot-number ]

Available in any view

Display sFlow configuration

information (on a distributed IRF

device)

display sflow [ chassis

chassis-number slot slot-number ]

Available in any view

sFlow Configuration Example

Network requirements

z

Host A and Server are connected to Switch through GigabitEthernet 2/0/1 and GigabitEthernet

2/0/2 respectively.

z

Host B works as an sFlow collector with IP address 3.3.3.2 and port number 6343, and is

connected to Switch through GigabitEthernet 2/0/3.

z

GigabitEthernet 2/0/3 belongs to VLAN 1, having an IP address of 3.3.3.1.

Run sFlow agent on Switch, and enable sFlow on GigabitEthernet 2/0/1 to monitor traffic on this

interface. Switch sends sFlow packets through GigabitEthernet 2/0/3 to Host B, which then analyzes

the sFlow packets and displays the results.