Ruijie Community

Title: How to Deploy IPFIX Sampling on a Network with RG-S6250-48XS8CQ? [Print this page]

Author: GTAC-Sophia    Time: 2023-7-4 15:13
Title: How to Deploy IPFIX Sampling on a Network with RG-S6250-48XS8CQ?
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.





Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2