配置Cisco Nexus 5k系列设备

 

Cisco Nexus 5k系列设备支持NetFlow导出。请在配置模式下配置以下命令:

 

feature netflow

flow timeout 60

 

flow exporter netflowexporter
  destination {NFA serverIP}
  transport udp 9996
  source {Source interface}
  version 9
    template data timeout 60
    option exporter-stats timeout 60
    option sampler-table timeout 60
    option interface-table timeout 60

 

flow record netflowrecord
  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 long
  collect timestamp sys-uptime first
  collect timestamp sys-uptime last

 

flow monitor netflowmonitor
  record netflowrecord
  exporter netflowexporter

sampler netflowsampler
  mode 1 out-of 100

 

在所有接口:

 

ip flow monitor netflowmonitor input sampler netflowsampler

Back to Top