Sample packet max len is 1400
Sample header max len is 50
Sample version is 4
2.8.4 sFlow Examples
As shown in the figure, sFlow sampling is enabled on the port 3/1 and 3/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 Switch connected with PC is
192.168.1.100. A loopback interface with the address of 10.1.144.2 is configured on the
Switch. 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)# (config)#in e3/1
Switch (Config-If-Ethernet3/1)#sflow rate input 10000
Switch (Config-If-Ethernet3/1)#sflow rate output 10000
Switch (Config-If-Ethernet3/1)#sflow rate counter-interval 20
Switch (Config-If-Ethernet3/1)#exit
Switch (config)# (config)#in e3/2
Switch (Config-If-Ethernet3/2)#sflow rate input 2000
Switch (Config-If-Ethernet3/2)#sflow rate output 20000
Switch (Config-If-Ethernet3/2)#sflow rate counter-interval 40
2.8.5 sFlow Troubleshooting
The length of the sFlow group data sent by the e3/1
interface should not exceed 1400 bytes.
The length of the packet data head copied in the data
sampling of the e3/1 interface sampling proxy is 50
The datagram version of the sFlow group sent by the
E3/1 interface sampling proxy is 4.
Fig 2-5 sFlow configuration topology
118