sFlow scenario

在这种情况下,两个主机发送sFlow交通用力推ough a switch to an sFlow collector. The physical topology of the network looks like this:

Procedure
  1. Enable sFlow globally.
    switch#configswitch(config)#sflow
  2. Set the sFlow agent IP address to10.10.12.1.
    switch(config)#sflow agent-ip 10.10.12.1
  3. Set the sFlow collector IP address to10.10.12.2.
    switch(config)#sflow collector 18.2.2.2
  4. Configure sFLow sampling rate and polling interval.
    switch(config)#sflow sampling 5000switch(config)#sflow polling 20
  5. Configure interface1/1/1with IP address10.10.10.1/24.
    switch(config)#interface 1/1/1switch(config-if)#no shutdownswitch(config-if)#ip address 10.10.10.1/24switch(config)#quit
  6. Configure interface1/1/2with IP address10.10.11.1/24.
    switch(config)#interface 1/1/1switch(config-if)#no shutdownswitch(config-if)#ip address 10.10.11.1/24switch(config)#quit
  7. Configure interface1/1/3with IP address10.10.12.1/24.
    switch(config)#interface 1/1/3switch(config-if)#no shutdownswitch(config-if)#ip address 10.10.12.1/24switch(config)#quit
  8. Verify sFlow configuration.
    switch#show sflowsFlow 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