[Contents] [Prev] [Next] [Index] [Report an Error]

Grouping Source and Destination Prefixes in a Forwarding Class (Optional)

Create a forwarding class that includes packets based on both the destination address and the source address in the packet.

To configure and apply a routing policy to group source and destination prefixes in a forwarding class:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 106.
  3. If you are finished configuring the policy, commit the configuration.
  4. Go on to one of the following procedures:

Table 106: Creating a Policy to Group Source and Destination Prefixes in a Forwarding Class

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Term level in the configuration hierarchy.

In the J-Web configuration editor hierarchy, select Policy options>Policy statement>Term.

From the top of the CLI configuration hierarchy, enter

edit policy-options policy-statement policy1 term term1

Specify the routes to include in the route filter.

  1. In the From option, click Configure.
  2. In the Route filter box, click Add new entry.
  3. In the Value box, enter the source and destination prefixes.
  4. Click OK.
  1. Specify source routes 10.210.0.0/16 or longer:

    set from route-filter 10.210.0.0/16 orlonger

  2. Specify destination routes 10.215.0.0/16 or longer:

    set from route-filter 10.215.0.0/16 orlonger

Group the source and destination prefixes.

  1. In the configuration editor hierarchy, select Policy options>Policy statement>Term.
  2. In the Then option, click Configure.
  3. In the Forwarding class box, enter the forwarding class name.
  4. Click OK.

Specify the forwarding class name:

set then forwarding class forwarding-class-name1

Navigate to the Forwarding table level in the configuration hierarchy.

In the J-Web configuration editor hierarchy, select Routing options>Forwarding table.

From the top of the CLI configuration hierarchy, enter

edit routing-options forwarding-table

Apply the policy to the forwarding table.

  1. In the Export box, click Add new entry.
  2. In the Value box, enter the name of the policy.
  3. Click OK.

The routing policy is evaluated when routes are being exported from the routing table into the forwarding table. Only active routes are exported from the routing table.

Specify source routes 10.210.0.0/16 or longer:

set export policy1

You can refer to the same routing policy one or more times in the same or a different export statement.


[Contents] [Prev] [Next] [Index] [Report an Error]