![SNR S2940-8G-v2 Configuration Manual Download Page 401](http://html1.mh-extra.com/html/snr/s2940-8g-v2/s2940-8g-v2_configuration-manual_1310630401.webp)
SNR S2940-8G-v2 Switch Configuration Guide
sFlow Configuration
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.
62.3
sFlow Examples
Switch
PC
Figure 62.1: sFlow configuration topology
As shown in the figure, sFlow sampling is enabled on the port 1/1 and 1/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 agent-address 10.1.144.2
Switch(config)#sflow destination 192.168.1.200
Switch(config)#sflow priority 1
Switch(config)#interface ethernet1/1
Switch(Config-If-Ethernet1/1)#sflow rate input 10000
Switch(Config-If-Ethernet1/1)#sflow rate output 10000
Switch(Config-If-Ethernet1/1)#sflow counter-interval 20
Switch(Config-If-Ethernet1/1)#exit
Switch(config)#interface ethernet1/2
Switch(Config-If-Ethernet1/2)#sflow rate input 20000
Switch(Config-If-Ethernet1/2)#sflow rate output 20000
Switch(Config-If-Ethernet1/2)#sflow counter-interval 40
401
Summary of Contents for S2940-8G-v2
Page 11: ...SNR S2940 8G v2 Switch Configuration Guide Part I Basic Management Configuration 11...
Page 46: ...SNR S2940 8G v2 Switch Configuration Guide Part II Port Configuration 46...
Page 123: ...SNR S2940 8G v2 Switch Configuration Guide Part III VLAN and MAC Table Configuration 123...
Page 164: ...SNR S2940 8G v2 Switch Configuration Guide Part IV MSTP Configuration 164...
Page 198: ...SNR S2940 8G v2 Switch Configuration Guide Part VI L3 Forward and ARP Configuration 198...
Page 218: ...SNR S2940 8G v2 Switch Configuration Guide Part VII DHCP Configuration 218...
Page 257: ...SNR S2940 8G v2 Switch Configuration Guide Part VIII Multicast Protocol 257...
Page 278: ...SNR S2940 8G v2 Switch Configuration Guide Part IX Security Function Configuration 278...
Page 376: ...SNR S2940 8G v2 Switch Configuration Guide Part X Reliability Configuration 376...
Page 395: ...SNR S2940 8G v2 Switch Configuration Guide Part XI Flow Monitor Configuration 395...
Page 403: ...SNR S2940 8G v2 Switch Configuration Guide Part XII Network Time Management Configuration 403...
Page 411: ...SNR S2940 8G v2 Switch Configuration Guide Part XIII Debugging and Diagnosis 411...