Deploy the IPFIX sampling function on a network to collect statistics on the network traffic. I. Enable the IPFIX sampling function on the egress of the router/layer-3 switch Configuration Steps: 1. Interface GigabitEthernet 1/1 is connected to the Internet and the Internet traffic needs to be monitored and analyzed. 2. Enablethe IPFIX function on interface GigabitEthernet 1/1. Ruijie#config terminal Ruijie(config-sampler)# mode random one-out-of10000 -----> configures the sampling rate rule Ruijie(config-sampler)#exit Ruijie(config)#interface gigabitEthernet 1/1 Ruijie(config-if)#flow-sampler my-sampler ----->applies the rule to the inbound direction if no direction is specified Or Ruijie(config-if)#flow-sampler my-sampler egress-----> applies the sampling rate rule configuration to the outbound direction of the interface Ruijie(config-if)#ip flow ingress -----> enables the IPFIX function in the inbound direction of an interface Ruijie(config-if)#ip flow egress -----> enablesthe IPFIX function in the outbound direction of an interface II. Configure the output of IPFIX packets to the IPFIX server on the router/layer-3switch Configuration Steps:
Ruijie#config terminal Ruijie(config)#ip flow-export destination192.168.2.2 9996 -----> sets the IP address of the IFPIX server, to whichflow records are to be exported Ruijie(config)#ip flow-export sourcegigabitEthernet 4/2 -----> configures the source IP address for packets tobe exported Ruijie(config)#ip flow-export version 9 ----->specify the format; version 9: Netflow V9 standard; version 10: IETF standard Ruijie(config)#ip flow-export template refresh-rate30 -----> specify the template retransmission frequency Ruijie(config)#ip flow-export template timeout-rate40 -----> specify the template retransmission interval Ruijie(config)#ip flow-export template optionsexport-stats -----> enable the export of option packets Ruijie(config)#ip flow-export template optionsrefresh-rate 35 -----> sets the retransmission frequency of option data Ruijie(config)#ip flow-export template optionstimeout-rate 45 -----> sets the retransmission interval of option data III. Verification Run the show ip flow interface command to display the IPFIX configuration of an interface. Run the show ip flow cache command to display flow table information of the device. Run the show ip flow export command to display exported information. |
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