O'Reilly logo

Juniper Networks® Field Guide and Reference by Juniper Networks®, Cris Morris, Gary Drenan, Aviva Garrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required