[Prev][Next][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 and , 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 116.
  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 116: Creating a Policy to Group Source and Destination Prefixes in a Forwarding Class

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the term1 level in the configuration hierarchy.

  1. In the J-Web interface, select Configure>CLI Tools>Point and Click CLI.
  2. Next to Policy options, click Configure or Edit.
  3. Under Policy name, click policy1.
  4. Under Term name, click term1.

From the [edit] hierarchy level, 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.

  1. On the main Configuration page next to Routing options, click Configure or Edit.
  2. Next to Forwarding table, click Configure or Edit.

From the [edit] hierarchy level, 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.


[Prev][Next][Report an Error]