[Contents] [Prev] [Next] [Index]


Configure Traffic Sampling

Traffic sampling requires a router equipped with an Internet Processor II ASIC. You can sample IP traffic based on particular input interfaces and various fields in the packet header. You can use traffic sampling to monitor any combination of specific logical interfaces, specific protocols on one or more interfaces, a range of addresses on a logical interface, or individual IP addresses. Information about the sampled packets is saved to files on the router's hard disk.

To determine whether a router has an Internet Processor II ASIC, use the show chassis hardware command.

To configure traffic sampling, you include statements at the [edit forwarding-options] hierarchy level of the configuration:

 [edit forwarding-options]
 sampling {
 	 disable; 
 	 input {
 	 	 family inet {
 	 	 	 rate number;
 	 	 	 run-length number;
 	 	 }
 	 }
 	 output {
 	 	 cflowd host-name {
	 	 	 engine-id id-number;
 	 	 	 (local-dump | no-local-dump);
	 	 	 port port-number;
	 	 	 version format; 
	 	 }
 	 	 file {
 	 	 	 filename filename;
 	 	 	 files number;
 	 	 	 size bytes;
 	 	 	 (stamp | no-stamp);
 	 	 	 (world-readable | no-world-readable);
 	 	 }
 	 }
 	 traceoptions {
 	 	 file filename {
 	 	 	 files number;
 	 	 	 size bytes;
 	 	 	 (world-readable | no-world-readable);
 	 	 }
 	 }
 }
 

This chapter describes the following tasks you perform in configuring traffic sampling:



[Contents] [Prev] [Next] [Index]