beautypg.com

3 sflow examples, Xamples – QTECH QSW-8300 Инструкция по настройке User Manual

Page 339

background image

+7(495) 797-3311 www.qtech.ru

Москва, Новозаводская ул., 18, стр. 1

338

7. Configure the sFlow statistic sampling interval

Command

Explanation

Port Mode

sflow counter-interval

no sflow counter-interval

Configure the max interval when sFlow
performing statistic sampling. The “no” form of

this command deletes

8. Configure the analyzer used by sFlow

Command

Explanation

Global Mode

sflow analyzer sflowtrend

no sflow analyzer sflowtrend

Configure the analyzer used by sFlow, the no

command deletes the analyzer.

38.3 sFlow Examples

sFlow configuration topology

As shown in the figure, sFlow sampling is enabled on the port 1/0/1 and 1/0/2 of the switch.

Assume the sFlow analysis software is installed on the PC with the address of 192.168.1.200.

The address of the layer 3 interface on the SwitchA connected with PC is 192.168.1.100. A

loopback interface with the address of 10.1.144.2 is configured on the SwitchA. sFlow

configuration is as follows:

Configuration procedure is as follows:

Switch#config

Switch (config)#sflow ageng-address 10.1.144.2

Switch (config)#sflow destination 192.168.1.200

Switch (config)#sflow priority 1

Switch (config)# interface ethernet1/0/1

Switch (Config-If-Ethernet1/0/1)#sflow rate input 10000

Switch (Config-If-Ethernet1/0/1)#sflow rate output 10000

Switch (Config-If-Ethernet1/0/1)#sflow counter-interval 20

Switch (Config-If-Ethernet1/0/1)#exit

switch

PC