跳转到内容
Ask AI

IPFIX Configuration

此内容尚不支持你的语言。

[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 |
+------------+------------------+-------------+-------------+--------------------+---------------+---------+------------+---------------------+

[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 |
+----------------+------------+----------+---------------+----------------+

[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 |
+-------------+-----------+--------+-------------+

[Command] ipfix exportername

[Purpose] Create ipfix exporter

[View] System configuration view

[Notes] Only one exporter can be configured globally

[Use Cases]

sonic# ipfix exporter test

[Command] dipA.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.1

[Command] domain_idid

[Purpose] Configure domain_id of ipfix packets

[View] ipfix exporter view

[Parameter]

ParameterDescription
idValue range: 1~2147483647

[Use Cases]

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

[Command] dportvalue

[Purpose] Configure the destination port of ipfix packets

[View] ipfix exporter view

[Use Cases]

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

[Command] path_mtuvalue

[Purpose] Configure MTU of ipfix packets

[View] ipfix exporter view

[Parameter]

ParameterDescription
valueValue range: 68~1450

[Use Cases]

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

[Command] sipA.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.1

[Command] sportvalue

[Purpose] Configure the source port of ipfix packets

[View] ipfix exporter view

[Use Cases]

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

[Command] template_intervalvalue

[Purpose] Configure the transmission interval for ipfix template packets

[View] ipfix exporter view

[Parameter]

ParameterDescription
valueValue range: 1~3600, unit s

[Use Cases]

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

[Command] vrfname

[Purpose] Configure the vrf of ipfix packet output port

[View] ipfix exporter view

[Parameter]

ParameterDescription
namename of vrf

[Use Cases]

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

[Command] ipfix monitor-mapname

[Purpose] Create ipfix monitor-map

[View] System configuration view

[Use Cases]

sonic(config)# ipfix monitor-map test

[Command] exportername

[Purpose] Bind exporter to monitor

[View] ipfix monitor view

[Parameter]

ParameterDescription
namename of exporter

[Use Cases]

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

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

[Purpose] Set the depth of analyzed messages

[View] ipfix monitor view

[Parameter]

ParameterDescription
l2Parses the l2 layer of the message
l3Parses the l3 layer of the message
l4Parses the l4 layer of the message
allParses the l2,l3,l4 layer of the message

[Use Cases]

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

[Command] timeout_activevalue

[Purpose] Set the active time of a session stream

[View] ipfix monitor view

[Parameter]

ParameterDescription
valueValue 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 60

[Command] timeout_passivevalue

[Purpose] Set the timeout for session flow.

[View] ipfix monitor view

[Parameter]

ParameterDescription
valueValue 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 120

ipfix monitor name {ip4|ip6|l2} {both|rx|tx}

Section titled “ipfix monitor name {ip4|ip6|l2} {both|rx|tx}”

[Command] ipfix monitorname**{ip4|ip6|l2} {both|rx|tx}**

[Purpose] Set the monitor interface.

[View] Interface configure view

[Parameter]

ParameterDescription
nameName of monitor-map
ip4|ip6|l2Collection point, matching collection message type
both|rx|txCollection direction

[Use Cases]

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