sFlow scenario
In this scenario, two hosts send sFlow traffic through a switch to an sFlow collector. The physical topology of the network looks like this:
On the 6400 Switch Series, interface identification differs.
Procedure
-
Enable sFlow globally.
switch# config switch(config)# sflow
-
Set the sFlow agent IP address to
10.10.12.1.
switch(config)# sflow agent-ip 10.10.12.1
-
Set the sFlow collector IP address to
10.10.12.2.
switch(config)# sflow collector 18.2.2.2
-
Configure sFLow sampling rate and polling interval.
switch(config)# sflow sampling 5000 switch(config)# sflow polling 20
-
Configure interface
1/1/1 with IP address
10.10.10.1/24.
switch(config)# interface 1/1/1 switch(config-if)# no shutdown switch(config-if)# ip address 10.10.10.1/24 switch(config)# quit
-
Configure interface
1/1/2 with IP address
10.10.11.1/24.
switch(config)# interface 1/1/1 switch(config-if)# no shutdown switch(config-if)# ip address 10.10.11.1/24 switch(config)# quit
-
Configure interface
1/1/3 with IP address
10.10.12.1/24.
switch(config)# interface 1/1/3 switch(config-if)# no shutdown switch(config-if)# ip address 10.10.12.1/24 switch(config)# quit
-
Verify sFlow configuration.
switch# show sflow sFlow Global Configuration ----------------------------------------- sFlow enabled Collector IP/Port/Vrf 10.10.12.2/6343/default Agent Address 10.10.12.1 Sampling Rate 5000 Polling Interval 20 Header Size 128 Max Datagram Size 1400 sFlow Status ----------------------------------------- Running - Yes sFlow Statistics ----------------------------------------- Number of Samples 25