IPFIX Configuration
24 min
\<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] 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] 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] sonic# show ipfix port map + + + + + \| interface | monitor | mode | direction | +=============+===========+========+=============+ \| ethernet16 | test | l2 | both | + + + + + \<font color="#1d50a2">ipfix exporter \</font> \[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 test \<font color="#1d50a2">dip \</font> \[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 1 \<font color="#1d50a2">domain 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] sonic(config ipfix exporter test)# domain id 10 \<font color="#1d50a2">dport \</font> \[command] dport value \[purpose] configure the destination port of ipfix packets \[view] ipfix exporter view \[use cases] sonic(config ipfix exporter test)# dport 2000 \<font color="#1d50a2">path mtu \</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] sonic(config ipfix exporter test)# path mtu 1000 \<font color="#1d50a2">sip \</font> \[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 1 \<font color="#1d50a2">sport \</font> \[command] sport value \[purpose] configure the source port of ipfix packets \[view] ipfix exporter view \[use cases] sonic(config ipfix exporter test)# sport 2000 \<font color="#1d50a2">template interval \</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] sonic(config ipfix exporter test)# template interval 60 \<font color="#1d50a2">vrf \</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] sonic(config ipfix exporter test)# vrf 123 \<font color="#1d50a2">ipfix monitor map \</font> \[command] ipfix monitor map name \[purpose] create ipfix monitor map \[view] system configuration view \[use cases] sonic(config)# ipfix monitor map test \<font color="#1d50a2">exporter \</font> \[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 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] sonic(config ipfix monitor map test)# record all \<font color="#1d50a2">timeout active \</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] sonic(config ipfix monitor map test)# timeout active 60 \<font color="#1d50a2">timeout passive \</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] 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] sonic(config if 16)# ipfix monitor test l2 both
