---
title: IPFIX Configuration
slug: routing/ipfix-configuration
createdAt: 2025-12-04T03:54:13.557Z
---

## <font color="#1d50a2">IPFIX Configuration</font>

### <font color="#1d50a2">show ipfix exporter</font>

**\[Command]**
**show ipfix exporter**

**\[Purpose]**
View ipfix exporter configuration

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipfix exporter
+------------+------------------+-------------+-------------+--------------------+---------------+---------+------------+---------------------+
| Exporter | Destination IP | Source IP | Domain_id | Destination Port | Source Port | VRF | Path MTU | Template Interval |
+============+==================+=============+=============+====================+===============+=========+============+=====================+
| test | 192.85.3.100 | 1.1.1.1 | 10 | 4739 | 4739 | default | 1000 | 60 |
+------------+------------------+-------------+-------------+--------------------+---------------+---------+------------+---------------------+
```

### <font color="#1d50a2">show ipfix monitor</font>

**\[Command]**
**show ipfix monitor**

**\[Purpose]**
View ipfix monitor configuration

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipfix monitor
+----------------+------------+----------+---------------+----------------+
| Monitor name | Exporter | Record | Active Time | Passive Time |
+================+============+==========+===============+================+
| test | test | l2 | 15 | 30 |
+----------------+------------+----------+---------------+----------------+
```

### <font color="#1d50a2">show ipfix port-map</font>

**\[Command]**
**show ipfix port-map**

**\[Purpose]**
View ipfix port configuration

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipfix port-map
+-------------+-----------+--------+-------------+
| Interface | Monitor | Mode | Direction |
+=============+===========+========+=============+
| Ethernet16 | test | l2 | both |
+-------------+-----------+--------+-------------+
```

### <font color="#1d50a2">ipfix exporter *name*</font>

**\[Command]**
**ipfix exporter *name***

**\[Purpose]**
Create ipfix exporter

**\[View]**
System configuration view

**\[Notes]**
Only one exporter can be configured globally

**\[Use Cases]**

```plaintext
sonic# ipfix exporter test
```

### <font color="#1d50a2">dip *A.B.C.D*</font>

**\[Command]**
**dip *A.B.C.D***

**\[Purpose]**
Configure destination ip of the ipfix packet

**\[View]**
ipfix exporter view

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# dip 1.1.1.1
```

### <font color="#1d50a2">domain\_id *id*</font>

**\[Command]**
**domain\_id *id***

**\[Purpose]**
Configure domain\_id of ipfix packets

**\[View]**
ipfix exporter view

**\[Parameter]**

| **Parameter** | **Description**            |
| ------------- | -------------------------- |
| *id*          | Value range: 1\~2147483647 |

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# domain_id 10
```

### <font color="#1d50a2">dport *value*</font>

**\[Command]**
**dport *value***

**\[Purpose]**
Configure the destination port of ipfix packets

**\[View]**
ipfix exporter view

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# dport 2000
```

### <font color="#1d50a2">path\_mtu *value*</font>

**\[Command]**
**path\_mtu *value***

**\[Purpose]**
Configure MTU of ipfix packets

**\[View]**
ipfix exporter view

**\[Parameter]**

| **Parameter** | **Description**       |
| ------------- | --------------------- |
| *value*       | Value range: 68\~1450 |

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# path_mtu 1000
```

### <font color="#1d50a2">sip *A.B.C.D*</font>

**\[Command]**
**sip *A.B.C.D***

**\[Purpose]**
Configure the source ip of ipfix packets

**\[View]**
ipfix exporter view

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# sip 1.1.1.1
```

### <font color="#1d50a2">sport *value*</font>

**\[Command]**
**sport *value***

**\[Purpose]**
Configure the source port of ipfix packets

**\[View]**
ipfix exporter view

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# sport 2000
```

### <font color="#1d50a2">template\_interval *value*</font>

**\[Command]**
**template\_interval *value***

**\[Purpose]**
Configure the transmission interval for ipfix template packets

**\[View]**
ipfix exporter view

**\[Parameter]**

| **Parameter** | **Description**              |
| ------------- | ---------------------------- |
| *value*       | Value range: 1\~3600, unit s |

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# template_interval 60
```

### <font color="#1d50a2">vrf *name*</font>

**\[Command]**
**vrf *name***

**\[Purpose]**
Configure the vrf of ipfix packet output port

**\[View]**
ipfix exporter view

**\[Parameter]**

| **Parameter** | **Description** |
| ------------- | --------------- |
| *name*        | name of vrf     |

**\[Use Cases]**

```plaintext
sonic(config-ipfix-exporter-test)# vrf 123
```

### <font color="#1d50a2">ipfix monitor-map *name*</font>

**\[Command]**
**ipfix monitor-map *name***

**\[Purpose]**
Create ipfix monitor-map

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# ipfix monitor-map test
```

### <font color="#1d50a2">exporter *name*</font>

**\[Command]**
**exporter *name***

**\[Purpose]**
Bind exporter to monitor

**\[View]**
ipfix monitor view

**\[Parameter]**

| **Parameter** | **Description**  |
| ------------- | ---------------- |
| *name*        | name of exporter |

**\[Use Cases]**

```plaintext
sonic(config-ipfix-monitor-map-test)# exporter test
```

### <font color="#1d50a2">record \{l2|l3|l4|all\}</font>

**\[Command]**
**record \{l2|l3|l4|all}**

**\[Purpose]**
Set the depth of analyzed messages

**\[View]**
ipfix monitor view

**\[Parameter]**

| **Parameter** | **Description**                          |
| ------------- | ---------------------------------------- |
| *l2*          | Parses the l2 layer of the message       |
| *l3*          | Parses the l3 layer of the message       |
| *l4*          | Parses the l4 layer of the message       |
| *all*         | Parses the l2,l3,l4 layer of the message |

**\[Use Cases]**

```plaintext
sonic(config-ipfix-monitor-map-test)# record all
```

### <font color="#1d50a2">timeout\_active *value*</font>

**\[Command]**
**timeout\_active *value***

**\[Purpose]**
Set the active time of a session stream

**\[View]**
ipfix monitor view

**\[Parameter]**

| **Parameter** | **Description**              |
| ------------- | ---------------------------- |
| *value*       | Value range: 1\~3600, unit s |

**\[Usage Scenario]**
When the input time of two messages in a stream exceeds the active time, the message information of this stream recorded during this time will be output immediately.

**\[Use Cases]**

```plaintext
sonic(config-ipfix-monitor-map-test)# timeout_active 60
```

### <font color="#1d50a2">timeout\_passive *value*</font>

**\[Command]**
**timeout\_passive *value***

**\[Purpose]**
Set the timeout for session flow.

**\[View]**
ipfix monitor view

**\[Parameter]**

| **Parameter** | **Description**              |
| ------------- | ---------------------------- |
| *value*       | Value range: 1\~3600, unit s |

**\[Usage Scenario]**
Start counting from the first packet input to the device in a flow, if there is no second packet input within the timeout\_passive configured time, the device will force to send out the statistics of this flow.

**\[Use Cases]**

```plaintext
sonic(config-ipfix-monitor-map-test)# timeout_passive 120
```

### <font color="#1d50a2">ipfix monitor name \{ip4|ip6|l2\} \{both|rx|tx\}</font>

**\[Command]**
**ipfix monitor *name* \{ip4|ip6|l2} \{both|rx|tx}**

**\[Purpose]**
Set the monitor interface.

**\[View]**
Interface configure view

**\[Parameter]**

| **Parameter**  | **Description**                                    |
| -------------- | -------------------------------------------------- |
| *name*         | Name of monitor-map                                |
| *ip4\|ip6\|l2* | Collection point, matching collection message type |
| *both\|rx\|tx* | Collection direction                               |

**\[Use Cases]**

```plaintext
sonic(config-if-16)# ipfix monitor test l2 both
```

