Configuring Routing Policy

To configure routing policy, you first define the policy, then apply it to a routing protocol or the forwarding table.

Defining Routing Policies

To define a routing policy, include the policy-statement statement. Each routing policy name must be unique within a configuration.

[edit policy-options]
policy-statement policy-name {
  term term-name {
    from {
      policy subroutine-policy-name;
      prefix-list name;
      route-filter destination-prefix match-type <actions>;
      source-address-filter destination-prefix match-type
        <actions >;
    to {
      policy subroutine-policy-name;
    then actions;
    prefix-list name {

Each policy term can consist of two statements, from and to, that define match ...

Get Juniper Networks® Field Guide and Reference now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.