Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring Route Filters and Source Classes in a Routing Policy

date_range 24-Nov-23

Begin configuring SCU by creating prefix route filters in a policy statement. These prefixes indicate the IPv4 or IPv6 source addresses to monitor. Within the policy statement, you must define and name the source classes attached to the filters.

content_copy zoom_out_map
[edit policy-options]
policy-statement policy-name {
    term term-name {
        from {
            route-filter address/prefix;
        }
        then source-class class-name;
    }
}
Note:

When configuring policy action statements, you can configure only one source class for each matching route. In other words, more than one source class cannot be applied to the same route.

An alternate configuration method, using the forwarding-class policy action, is even more flexible. It allows your IPv4 or IPv6 route filters to apply to an SCU profile, a DCU profile, or both simultaneously. Additionally, if you have only one term, you can implement the from and then statements at the [edit policy-options policy-statement policy-name] hierarchy level.

content_copy zoom_out_map
[edit policy-options]
policy-statement policy-name {
    from {
        route-filter 105.15.0.0/16 orlonger;
    }
    then forwarding-class class-name;
}

A third option is the existing DCU parameter of destination-class. For more information on DCU, see the Junos Policy Framework Configuration Guide.

footer-navigation