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

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

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

To configure and apply the routing policy policy1, which you configured in Table 63 and Table 64, 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 68.
  3. If you are finished configuring the router, commit the configuration.
  4. To configure additional routing policy features, go on to one of the following procedures:

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

Navigate to the term1 level in the configuration hierarchy.

In the configuration editor hierarchy, select Policy options>Policy statement policy1>Term term1.

From the top of the configuration hierarchy, enter

edit policy-options policy-statement policy1 term term1

Specify the routes to include in the route filter. For example:

  • Source routes greater than or equal to 10.210.0.0/16
  • Destination routes greater than or equal to 10.215.0.0/16
  1. Next to From, click Configure.
  2. Next to Route filter, click Add new entry.
  3. In the Address box, type 10.210.0.0/16.
  4. From the Modifier list, select Orlonger.
  5. Click OK to return to the From page.

Specify the source routes for the route filter:

set from route-filter 10.210.0.0/16 orlonger

  1. Next to Route filter, click Add new entry.
  2. In the Address box, type 10.215.0.0/16.
  3. From the Modifier list, select Orlonger.
  4. Click OK until you return to the Term page.

Specify the destination routes for the route filter:

set from route-filter 10.215.0.0/16 orlonger

Group the source and destination prefixes into a forwarding class—for example, forwarding-class1.

  1. Next to Then, click Configure.
  2. In the Forwarding class box, type forwarding-class1.
  3. Click OK.

Specify the forwarding class name:

set then forwarding class forwarding-class1

Navigate to the Forwarding table level in the configuration hierarchy.

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

From the top of the configuration hierarchy, enter

edit routing-options forwarding-table

Apply the policy1 policy to the forwarding table.

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.

  1. Next to Export, click Add new entry.
  2. In the Value box, type policy1.
  3. Click OK.

Specify the routing policy to apply:

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]