Flexible NetFlowのrecord・monitor・exporter1 / 8
三つの部品
recordはflowを識別するmatch fieldと、保存するcollect fieldを定義する。monitorはrecordとcacheを使い、必要なexporterへ送る。exporterはcollectorの宛先、source、UDP portや形式を持つ。部品を作るだけでなく相互の参照とinterfaceへの適用を合わせる。
次は対応するIOS XEでIPv4のsource/destination、protocolとtransport port等をkeyへする例である。
flow record APP-REC
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match transport source-port
match transport destination-port
match interface input
collect counter bytes long
collect counter packets long
collect timestamp absolute first
collect timestamp absolute last
!
flow exporter APP-EXP
destination 192.0.2.50
source Vlan99
transport udp 2055
export-protocol netflow-v9
!
flow monitor APP-MON
record APP-REC
exporter APP-EXP
cache timeout active 60
!
interface GigabitEthernet1/0/10
ip flow monitor APP-MON input
sourceのVlan99にはcollectorへ送るaddressとroute等を用意する。対応するfield、interfaceとinput/outputの方向、cacheやexportの動作は機器・版の条件に従う。