IPFIX Configuration
IPFIX Configuration
Section titled “IPFIX Configuration”show ipfix exporter
Section titled “show ipfix exporter”[Command]
show ipfix exporter
[Purpose]
View ipfix exporter configuration
[View]
System view
[Use Cases]
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 |+------------+------------------+-------------+-------------+--------------------+---------------+---------+------------+---------------------+show ipfix monitor
Section titled “show ipfix monitor”[Command]
show ipfix monitor
[Purpose]
View ipfix monitor configuration
[View]
System view
[Use Cases]
sonic# show ipfix monitor+----------------+------------+----------+---------------+----------------+| Monitor name | Exporter | Record | Active Time | Passive Time |+================+============+==========+===============+================+| test | test | l2 | 15 | 30 |+----------------+------------+----------+---------------+----------------+show ipfix port-map
Section titled “show ipfix port-map”[Command]
show ipfix port-map
[Purpose]
View ipfix port configuration
[View]
System view
[Use Cases]
sonic# show ipfix port-map+-------------+-----------+--------+-------------+| Interface | Monitor | Mode | Direction |+=============+===========+========+=============+| Ethernet16 | test | l2 | both |+-------------+-----------+--------+-------------+ipfix exporter name
Section titled “ipfix exporter name”[Command]
ipfix exporter name
[Purpose]
Create ipfix exporter
[View]
System configuration view
[Notes]
Only one exporter can be configured globally
[Use Cases]
sonic# ipfix exporter testdip A.B.C.D
Section titled “dip A.B.C.D”[Command]
dip A.B.C.D
[Purpose]
Configure destination ip of the ipfix packet
[View]
ipfix exporter view
[Use Cases]
sonic(config-ipfix-exporter-test)# dip 1.1.1.1domain_id id
Section titled “domain_id id”[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]
sonic(config-ipfix-exporter-test)# domain_id 10dport value
Section titled “dport value”[Command]
dport value
[Purpose]
Configure the destination port of ipfix packets
[View]
ipfix exporter view
[Use Cases]
sonic(config-ipfix-exporter-test)# dport 2000path_mtu value
Section titled “path_mtu value”[Command]
path_mtu value
[Purpose]
Configure MTU of ipfix packets
[View]
ipfix exporter view
[Parameter]
| Parameter | Description |
|---|---|
| value | Value range: 68~1450 |
[Use Cases]
sonic(config-ipfix-exporter-test)# path_mtu 1000sip A.B.C.D
Section titled “sip A.B.C.D”[Command]
sip A.B.C.D
[Purpose]
Configure the source ip of ipfix packets
[View]
ipfix exporter view
[Use Cases]
sonic(config-ipfix-exporter-test)# sip 1.1.1.1sport value
Section titled “sport value”[Command]
sport value
[Purpose]
Configure the source port of ipfix packets
[View]
ipfix exporter view
[Use Cases]
sonic(config-ipfix-exporter-test)# sport 2000template_interval value
Section titled “template_interval value”[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]
sonic(config-ipfix-exporter-test)# template_interval 60vrf name
Section titled “vrf name”[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]
sonic(config-ipfix-exporter-test)# vrf 123ipfix monitor-map name
Section titled “ipfix monitor-map name”[Command]
ipfix monitor-map name
[Purpose]
Create ipfix monitor-map
[View]
System configuration view
[Use Cases]
sonic(config)# ipfix monitor-map testexporter name
Section titled “exporter name”[Command]
exporter name
[Purpose]
Bind exporter to monitor
[View]
ipfix monitor view
[Parameter]
| Parameter | Description |
|---|---|
| name | name of exporter |
[Use Cases]
sonic(config-ipfix-monitor-map-test)# exporter testrecord {l2|l3|l4|all}
Section titled “record {l2|l3|l4|all}”[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]
sonic(config-ipfix-monitor-map-test)# record alltimeout_active value
Section titled “timeout_active value”[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]
sonic(config-ipfix-monitor-map-test)# timeout_active 60timeout_passive value
Section titled “timeout_passive value”[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]
sonic(config-ipfix-monitor-map-test)# timeout_passive 120ipfix monitor name {ip4|ip6|l2} {both|rx|tx}
Section titled “ipfix monitor name {ip4|ip6|l2} {both|rx|tx}”[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]
sonic(config-if-16)# ipfix monitor test l2 both