Specifications
Configuring NetFlow on the X-Series Router
May 18, 2011 Page 12 of 21
TheX‐SeriesroutercurrentlysupportsdataexportVersion1andVersion5.CLIcommandsare
providedtoconfigurecertainrecordformatvaluesrequiredforVersion5,suchasengineIDand
enginetype.
YoumustconfigureaNetFlowexportdestinationbeforeyoucanenableNetFlowgloballyoron
anyports.
NetFlowwillstartsamplingpacketsafteryouenableNetFlowgloballyandonthe
desiredports.
Disabling NetFlow
TodisableNetFlowonaport,useeitherofthefollowingcommands:
set netflow port port-string disable
clear netflow port port-string
WhenyoudisableNetFlowonaport,NetFlowwillstopsamplingandthecurrentflowdatawill
beexportedwhentheexporttimeoutintervalexpires.
TodisableNetFlowglobally,useeitherofthefollowingcommands:
set netflow cache disable
clear netflow all
Procedure 2 Configuring NetFlow on X-Series Router Systems
Step Task Command(s)
1. Optionally, check the current NetFlow
configuration settings and sampling rate.
show netflow config
2. Optionally, change the sampling rate for
packets.
set sampling-rate number
3. Configure the NetFlow collector destination. You
cannot enable NetFlow globally or on ports until
an export destination has been configured.
set netflow export-destination
ip-address [udp-port]
4. Configure the administrative interface used as
the source IP address of the exported NetFlow
packets.
set netflow interface port-string
5. Configure the NetFlow flow record version to be
used for the flow data packets. Version 5 is the
default.
Optionally, also configure the BGP AS address
type. Default is peer-as.
set netflow export version {1 | 5}
[origin-as | peer-as]
6. If using Version 5, configure the engine ID and
engine type.
set netflow engine-id engine-id type
engine-type
7. Optionally, configure the export interval. The
default is 30 minutes.
set netflow export-interval min
8. Optionally, configure the maximum number of
flows that can be saved into the cache. The
default is 64 KB.
set netflow entries max-num
9. Enable NetFlow globally. set netflow cache enable
10. Enable NetFlow on the desired ports. set netflow port port-string enable