Requirements: As shown in the topology, SwitchA, as the sFlow Agent, enables flow sampling and counter sampling on port Te0/1 to monitor the traffic in network segment 192.168.1.0 and periodically encapsulate the sampling results into sFlow packets. Sent to the sFlow Collector for analyzing the traffic monitored by sFlow Agent Topology: Configuration tips: 1. Set the sFlow Agent address to 192.168.1.1. 2. Set the address of the sFlow Collector 1 to 192.168.3.100 and port number is 6343. 3. Configure flow sampling and counter sampling output to sFlow Collector 1 on interface TenGigabitEthernet 0/1, and enable the sFlow sampling function on this interface Configuration steps: Ruijie# configure terminal Ruijie(config)# sflow agent address 192.168.1.1 Ruijie(config)# sflow collector 1 destination 192.168.3.100 6343 Ruijie(config)# interface TenGigabitEthernet 0/1 Ruijie(config-if-TenGigabitEthernet 0/1)# sflow flow collector 1 Ruijie(config-if-TenGigabitEthernet 0/1)# sflow counter collector 1 Ruijie(config-if-TenGigabitEthernet 0/1)# sflow enable Ruijie(config-if-TenGigabitEthernet 0/1)# end Verification: Command: show sflow Information displayed on the sFlowTrend software: The preceding figure shows the Top N page of the sFlowTrend software. This page displays the flow sampling results and displays the top 5 source IP addresses that involve the largest traffic. The total incoming traffic is about 450 Kpps and the total outgoing traffic is 450 Kpps, which are consistent with the actual traffic. The preceding figure shows the counters page of the sFlowTrend software. This page displays the counter sampling results. The incoming traffic is 450 Kpps and the outgoing traffic is also 450 Kpps. In addition, all packets are unicast packets. |
This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.
More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.
©2000-2023 Ruijie Networks Co,Ltd