[Contents] [Prev] [Next] [Index] [Report an Error]


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.
  2. [edit firewall family family-name]
    
    filter filter-name {
    
        term term-name {
    
            then {
    
                sample;
    
                accept;
    
            }
    
        }
    
    }
    
    
    
  3. Apply the filter to the interfaces on which you want to sample traffic:
  4. [edit interfaces]
    
    interface-name {
    
        unit logical-unit-number {
    
            family family-name {
    
                filter {
    
                    input filter-name;
    
                } 
    
                address address {
    
                    destination destination-address;
    
                }
    
            }
    
        }
    
    }
    
    
    
  5. Enable sampling and specify a nonzero sampling rate:
  6. [edit forwarding-options]
    
    sampling {
    
        input {
    
            family inet {
    
                rate number;
    
            }
    
        }
    
    }
    

[Contents] [Prev] [Next] [Index] [Report an Error]