Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level

route-filter-list (usage)

Hierarchy Level


The route filter list is a user-configured list of individual route filters that you create at the [edit policy-options] hierarchy level. Each item in the list consists of a complete route filter statement, made up of a destination prefix, a match type, and an optional action. You can re-use the list in different policies, adding whatever qualifiers you need, rather than having to re-create it for every different case, as shown in the examples below.

Once configured, the route-filter-list is used by referencing its route-filter-list-name in a policy-statement at the [edit policy-options policy-statement policy-statement-name term term-name from] hierarchy level. Route filter lists can be used in conjunction with other route-filter statements.

For example:

If one action is associated with the route-filter-list entry and another action is associated with the list-level entry, the action associated with the list-level entry takes precedence.

Here is an example on how to specify policy-based control for BGP-LU labels being allocated for a given prefix:


When specifying a match prefix, you can specify an exact match with a particular route or a less precise match. You can configure either a common action that applies to the entire list or an action associated with each prefix.

  • list-name—Name of route-filter-list of routes to match.

  • exact—Exactly match the prefix length.

  • longer—Mask is greater than the prefix length.

  • orlonger—Mask is greater than or equal to the prefix length.

  • prefix-length-range—Mask falls between two prefix lengths.

  • upto—Mask falls between two prefix length.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 16.1.

Support on PTX1000, PTX10000, and PTX10003 Packet Transport Routers introduced in Junos OS Release 20.2R1 for the following list-level qualifiers: exact, longer, orlonger, prefix-length-range, and upto.