Configuring SCU or DCU

To configure SCU or DCU, perform the following tasks described in this section:

Note: We recommend that you stop the network traffic on an interface before you modify the DCU or SCU configuration for that interface. Modifying the DCU or SCU configuration without stopping the traffic might corrupt the DCU or SCU statistics. Before you restart the traffic after modifying the configuration, enter the clear interfaces statistics command.

Creating Prefix Route Filters in a Policy Statement

Define prefix router filters:

[edit policy-options]policy-statement scu-1 {term term1;from {route-filter 192.168.1.0/24 orlonger;}then source-class gold;}

Applying the Policy to the Forwarding Table

Apply the policy to the forwarding table:

[edit]routing-options {forwarding-table {export scu-1;}}

Enabling Accounting on Inbound and Outbound Interfaces

You can enable accounting on inbound and outbound interfaces:

[edit]interfaces {so-6/1/0 {unit 0 {family inet;accounting {destination-class-usage;source-class-usage {output;}}}}}[edit]interfaces {xe-0/1/0 {unit 0 {family inet6 {accounting {source-class-usage {input;}}}}}}

Optionally, you can include the input and output statements on a single interface:

[edit]interfaces {xe-0/1/2 {unit 0 {family inet6 {accounting {source-class-usage {input;output;}}}}}}

For more information about configuring route filters and source classes in a routing policy, see the Junos Policy Framework Configuration Guide and the Junos Network Interfaces Configuration Guide.

Related Topics