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
Section titled “ipfix exporter”[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.1domain_id
Section titled “domain_id”[Command] domain_idid
[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 10[Command] dportvalue
[Purpose] Configure the destination port of ipfix packets
[View] ipfix exporter view
[Use Cases]
sonic(config-ipfix-exporter-test)# dport 2000path_mtu
Section titled “path_mtu”[Command] path_mtuvalue
[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 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 2000template_interval
Section titled “template_interval”[Command] template_intervalvalue
[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 60[Command] vrfname
[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
Section titled “ipfix monitor-map”[Command] ipfix monitor-mapname
[Purpose] Create ipfix monitor-map
[View] System configuration view
[Use Cases]
sonic(config)# ipfix monitor-map testexporter
Section titled “exporter”[Command] exportername
[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
Section titled “timeout_active”[Command] timeout_activevalue
[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
Section titled “timeout_passive”[Command] timeout_passivevalue
[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 monitorname**{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