Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring CoS Queuing for GRE or IP-IP Tunnels

This example shows how to configure CoS queuing for GRE or IP-IP tunnels.

Note:

CoS queuing is not supported on GRE tunnels in chassis clusters.

Requirements

Before you begin:

Overview

In this example, you enable tunnel queuing, define the GRE tunnel interface as gr-0/0/0, (Alternatively, you could define the IP-IP tunnel interface as ip-0/0/0.) and set the per unit scheduler. You then set the GRE tunnel’s line rate as 100 Mbps by using the shaper definition.

In Figure 1, Router A has a GRE tunnel established with Router B through interface ge-1/0/0. Router A also has an IP-IP tunnel established with Router C through interface ge-1/0/1. Router A is configured so that tunnel-queuing is enabled. Router B and Router C do not have tunnel-queuing configured.

Figure 1: Configuring CoS Queuing for GRE TunnelsConfiguring CoS Queuing for GRE Tunnels

Topology

Configuration

Procedure

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from the configuration mode.

Step-by-Step Procedure

To configure CoS queuing for GRE tunnels:

  1. Enable tunnel queuing on the device.

  2. Define the GRE tunnel interface.

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

  4. Define the GRE tunnel’s line rate by using the shaper definition.

Results

From configuration mode, confirm your configuration by entering the show class-of-service interfaces gr-0/0/0, show interfaces gr-0/0/0 , and show chassis commands. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Verification

Confirm that the configuration is working properly.

Verifying a CoS Queuing for GRE Tunnel Configuration

Purpose

Verify that the device is configured properly for tunnel configuration.

Action

From configuration mode, enter the show interfaces queue gr-0/0/0.0 command.

Note:

If you enter gr-0/0/0.0 only, queue information for all tunnels is displayed. If you enter gr-0/0/0.0, queue information for the specific tunnel is displayed.

Verifying a CoS Queuing for IP-IP Tunnel Configuration

Purpose

Verify that the device is configured properly for tunnel configuration.

Action

From configuration mode, enter the show interfaces queue ip-0/0/0.0 command.

Note:

If you enter ip-0/0/0.0 only, queue information for all tunnels is displayed. If you enter ip-0/0/0.0, queue information for the specific tunnel is displayed.