ON THIS PAGE
Configure Active Flow Monitoring Logs for NAT44/NAT64
Overview
Active Flow Monitoring logs are generated for NAT44 /NAT64 sessions to create or delete events on MX-SPC3 devices.
Requirements
This example uses the following hardware and software components:
- MX480 and MX960 with MX-SPC3
- Junos OS Release 21.2R1
Configuration
To configure Active Flow Monitoring logging on MX-SPC3 devices, perform these tasks:
-
Configure the collectors on an interface.
[edit] user@host# set services jflow-log collector c1 destination-address 10.30.1.2 user@host# set services jflow-log collector c1 destination-port 1055 user@host# set services jflow-log collector c1 source-ip 10.30.1.1
-
Configure the collector groups.
[edit] user@host# set services jflow-log collector-group cg1 collector c1
-
Configure the template profiles and associate the template profile with the collector or collector group.
[edit] user@host# set services jflow-log template-profile t1 collector-group cg1
-
Associate the template profile with the template type.
[edit] user@host# set services jflow-log template-profile t1 template-type nat
-
Associate the template profile with the version.
[edit] user@host# set services jflow-log template-profile t1 version ipfix
-
Assign the refresh-rate values.
[edit] user@host# set services jflow-log template-profile t1 refresh-rate packets 100 user@host# set services jflow-log template-profile t1 refresh-rate seconds 60
-
Associate the template profile with the service set.
[edit] user@host# set services service-set ss1 jflow-log template-profile t1
Results
From the configuration mode, confirm your configuration by entering the
show services jflow-log
command in configuration mode. If
the output does not display the intended configuration, repeat the instructions
in this example to correct the configuration.
user@host# show services jflow-log collector c1 { destination-address 10.30.1.2; destination-port 1055; source-ip 10.30.1.1; } collector-group cg1 { collector c1; } template-profile t1 { collector-group cg1; template-type nat; version ipfix; refresh-rate { packets 100; seconds 60; } }