Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Minimum Traffic Sampling Configuration

date_range 24-Nov-23

To configure traffic sampling, you must perform at least the following tasks:

  1. Create a firewall filter to apply to the logical interfaces being sampled by including the filter statement at the [edit firewall family family-name] hierarchy level. In the filter then statement, you must specify the action modifier sample and the action accept.

    content_copy zoom_out_map
    [edit firewall family family-name]
    filter filter-name {
        term term-name {
            then {
                sample;
                accept;
            }
        }
    }
    
  2. Apply the filter to the interfaces on which you want to sample traffic:

    content_copy zoom_out_map
    [edit interfaces]
    interface-name {
        unit logical-unit-number {
            family family-name {
                filter {
                    input filter-name;
                }
                address address {
                    destination destination-address;
                }
            }
        }
    }
    
  3. Enable sampling and specify a nonzero sampling rate:

    content_copy zoom_out_map
    [edit forwarding-options]
    sampling {
        input {
            rate number;
        }
    }
    
footer-navigation