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 {
      match-conditions;
      policy subroutine-policy-name;
      prefix-list name;
      route-filter destination-prefix match-type <actions>;
      source-address-filter destination-prefix match-type
        <actions >;
    }
    to {
      match-conditions;
      policy subroutine-policy-name;
    }
    then actions;
    prefix-list name {
    ip-addresses;
  }
}

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

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

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