Example: Creating a Routing Policy

This example shows how to create a simple routing policy.

Requirements

Before you begin, determine what you want to accomplish with the policy, configure router interfaces, and configure routing protocols, as explained in Routing Policies Configuration Overview.

Overview

In this example, you create a routing policy called policy1.

Configuration

Step-by-Step Procedure

To create a routing policy:

  1. Create the routing policy.

    [edit]user@host# set policy-options policy-statement policy1
  2. Commit the configuration if you are done configuring the device.

    [edit]user@host# commit

    Note: The policy does not take effect until you apply it.

Verification

To verify your configuration, use the show policy-options command.

Related Topics