Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

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

To 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

To apply the policy to the forwarding table:

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

Enabling Accounting on Inbound and Outbound Interfaces

To 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 as shown:

[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 Routing Policy Configuration Guide and the Junos® OS Network Interfaces.

Published: 2012-12-08