Example 9
Configure a routing policy to group source and destination prefixes in a forwarding class:
[edit]policy-options {policy-statement set-bronze-class {term {fromroute-filter 10.210.0.0/16 orlonger;route-filter 10.215.0.0/16 orlonger;then {forwarding-class bronze-class;}}}}Apply a routing policy to the forwarding table with the corresponding forwarding class:
[edit]routing-options {forwarding-table {export set-bronze-class;}}Enable counting of incoming source packets on an interface:
[edit interfaces]interfaces fe/1/0/0 {unit 0 {family inet {accounting { source-class-usage {input;}}}}}interfaces fe/1/0/1 {unit 0 {family inet {accounting { source-class-usage {output;}}}}}interfaces fe/1/0/2 {unit 0 {family inet {accounting { destination-class-usage;}}}}