NX-OSのNetFlow・SPANと異常分析1 / 10

NetFlowの構成

Recordはflowのkey(match)と収集するcounter等(collect)、exporterはcollector/送信元/transport、monitorはrecord/exporterとcacheをまとめる。feature対応とplatformの制約を確認してinterface/directionへ適用する。

feature netflow
flow record IPV4_FLOWS
  match ipv4 source address
  match ipv4 destination address
  match ip protocol
  match transport source-port
  match transport destination-port
  collect counter bytes
  collect counter packets
exit
flow exporter COLLECTOR
  destination 192.0.2.80
  source loopback0
  transport udp 2055
  version 9
exit
exit
flow monitor INPUT_FLOWS
  record IPV4_FLOWS
  exporter COLLECTOR
exit
interface Ethernet1/1
  ip flow monitor INPUT_FLOWS input

対応する送信元/VRFとcollectorへのroute、v9 templateも合わせる。flowは通常方向別に集約する。sampling、cache timeout、platformのingress/egressやL2/L3対応も収集結果を変える。

学習パスへ
参考資料