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

Configuring CoS for GRE Tunnels

In the network shown in Figure 94, Router A acts as a tunnel ingress device. The link between GRE tunnel interfaces ge-1/0/0 in Router A and ge-1/0/3 in Router B is the GRE tunnel. Router A monitors the traffic received from interface ge-1/0/3. By way of interface ge-1/0/2, Router C generates traffic to Router B.

Figure 94: Configuring CoS Queing for GRE Tunnels

Image g030133.gif

To configure COS queuing for GRE or IP-IP tunnels:

  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 210 to configure CoS queuing for tunnel interfaces.
    1. Enable tunnel queuing on the router.
    2. Define the GRE or IP-IP tunnel interface.
    3. Define the per-unit scheduler for the GRE or IP-IP tunnel interface.
    4. Define the tunnel's line rate using the shaper definition.
  3. Configure forwarding classes and schedulers.

    For information on configuring forwarding classes, see Assigning Forwarding Classes to Output Queues. For information on configuring schedulers, see Configuring Schedulers .

  4. Configure a scheduler map and apply the scheduler map to the tunnel interface. For information on configuring a scheduler map, see Configuring and Applying Scheduler Maps .
  5. Configure classifiers and apply them to the tunnel interface.

    For information on configuring classifiers, see Configuring and Applying Behavior Aggregate Classifiers .

  6. Create rewrite rules and apply them to the tunnel interface.

    For information on configuring rewrite rules, see Configuring and Applying Rewrite Rules.

  7. If you are finished configuring the router, commit the configuration.
  8. Go on to one of the following tasks:

Table 210: Configuring CoS for GRE Tunnels

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Chassis level in the configuration hierarchy, and enable tunnel queuing on the router.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Chassis, click Configure or Edit.
  3. Next to Fpc, click Add new entry.
  4. Next to Slot, type 0.
  5. Next to Pic, click Add New Entry.
  6. Next to Slot, type 0.
  7. Select the check box next to Tunnel queuing.
  8. Click OK until you return to the main Configuration page.

From the [edit] hierarchy level, enter

edit chassis fpc 0 pic 0 tunnel-queuing

Navigate to the Interfaces level in the configuration hierarchy, and define the GRE tunnel interface gr-0/0/0.

  1. On the main Configuration page, next to Interfaces click Configure or Edit.
  2. In the Interfaces name box, type gr-0/0/0.
  3. Next to Unit, click Add new entry.
  4. In the Interfaces unit number box, type 0.
  5. Click OK.

From the [edit] hierarchy level, enter

edit interfaces gr-0/0/0 unit 0

Define the per-unit scheduler for the GRE tunnel interface.

  1. From the Scheduler type list, select Per unit scheduler.
  2. Click OK until you return to the main Configuration page.

From the [edit] hierarchy level, enter

set interfaces gr-0/0/0 per-unit-scheduler

Navigate to the Class of service level in the configuration hierarchy, and define the GRE tunnel's line rate (for example, 100 Mbps) using the shaper definition.

  1. On the main configuration page next to Class of service, click Configure or Edit
  2. Next to Interfaces, click Add new entry.
  3. In the Interface name box, type the name of the interface gr-0/0/0.
  4. Next to unit, click Add New Entry.
  5. In the Interface unit number box, type the logical interface unit number 0.
  6. Select the Shaping rate check box, and click Configure
  7. Next to Shaping Rate choice, select Rate.
  8. In the Rate box, type 100m.
  9. Click OK until you return to the main Class of Service configuration page.

From the [edit] hierarchy level, enter

set class-of-service interfaces gr-0/0/0 unit 0 shaping-rate 100m


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