GTAC-Sophia Publish time 2023-7-4 15:13:02

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 ruleRuijie(config-sampler)#exitRuijie(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 interfaceRuijie(config-if)#ip flow ingress -----> enables the IPFIX function in the inbound direction of an interfaceRuijie(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:

[*]Configure the output destination address and destination port.
[*]Configure the format for packets to be exported.
[*]Configure the output template retransmission frequency.
[*]Configure the output options.


Ruijie#config terminalRuijie(config)#ip flow-export destination192.168.2.2 9996 -----> sets the IP address of the IFPIX server, to whichflow records are to be exportedRuijie(config)#ip flow-export sourcegigabitEthernet 4/2 -----> configures the source IP address for packets tobe exportedRuijie(config)#ip flow-export version 9 ----->specify the format; version 9: Netflow V9 standard; version 10: IETF standardRuijie(config)#ip flow-export template refresh-rate30 -----> specify the template retransmission frequencyRuijie(config)#ip flow-export template timeout-rate40 -----> specify the template retransmission intervalRuijie(config)#ip flow-export template optionsexport-stats -----> enable the export of option packetsRuijie(config)#ip flow-export template optionsrefresh-rate 35 -----> sets the retransmission frequency of option dataRuijie(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.
Pages: [1]
View full version: How to Deploy IPFIX Sampling on a Network with RG-S6250-48XS8CQ?