[j-nsp] destination-class accounting

Phil Rosenthal pr at isprime.com
Tue Jun 1 22:51:10 EDT 2004


Hello,

I'm trying to use destination-class to track how much traffic a certain 
flow has, but i'm having problems doing it.

Here's what the relevant config snippets look like:

policy-options {
     policy-statement mypolicy {
         term gar1-local {
             from {
                 as-path myaspath1;
             }
             then {
                 metric 19;
                 local-preference 500;
                 destination-class destclass1;
                 accept;
             }
         }
     }
}
interfaces {
     ge-3/0/0 {
         unit 0 {
             family inet {
                 accounting {
                     destination-class-usage;
                 }
             }
         }
     }
}
firewall {
     filter sample-all {
         term destclass1 {
             from {
                 destination-class destclass1;
             }
             then count destclass1;
         }
     }
}

The interface is using sample-all as it's outbound filter, and the bgp 
session is using mypolicy on it's import.  Am I missing something?
--Phil Rosenthal
ISPrime, Inc.



More information about the juniper-nsp mailing list