Chapter12NetFlowConīæguration
12.3.2NetFlowV8ConfigurationExample
ConīgurationDescription
AsshowninFigure12-2,conīægureNetFlowonR1,connecttheservertoR1,andconīægure
anIPaddress.ConīægurearoutetotheserverifnecessarysothattheNetFlowpackets
canbesenttotheserver.
Figure12-2NetFlowV8ConīægurationExample
ConīgurationFlow
1.EnableNetFlowService.
2.Conīægureīowexporteroutput,includingtheserverIPaddress,portnumberand
protocoltype.
3.Conīæguresampler,settingsamplingrateandsamplingmode.
4.Conīægurethecachesizeofīowmonitor,theactiveovertimevalueandtheinactive
overtimevalue.Bindtheconīæguredīowexportertothesystemv8module.
5.Bindīowmonitortotheinterface,andconīægurethesamplingtypeanddirection.
ConīgurationCommand
ConīægurationonR1:
R1(config)#flowexporterexp
R1(config-flow-exporter)#destinationipv4-address169.1.109.60
R1(config-flow-exporter)#transportudp2055
R1(config-flow-exporter)#export-protocolnetflow-v8
R1(config-flow-exporter)#exit
R1(config)#samplersam
R1(config-sampler)#modedeterministic1-out-of1024
R1(config-sampler)#exit
R1(config)#flowmonitormo
R1(config-flow-monitor)#cacheentries4096
R1(config-flow-monitor)#exporterexp
R1(config-flow-monitor)#recordnetflowipv4protocol-port
R1(config-flow-monitor)#cachetimeoutinactive60
R1(config-flow-monitor)#cachetimeoutactive10
R1(config-flow-monitor)#exit
12-11
SJ-20140504150128-007|2014-05-10(R1.0)ZTEProprietaryandConīædential