Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring CoS with DSCP IPv6 Rewrite Rules

This example shows how to associate an interface with a default or user-defined DSCP IPv6 rewrite rule. Typically, you use rewrite rules to alter CoS values in outgoing packets to meet the requirements of the targeted peer.

Requirements

Before you begin, configure the ge-0/0/0 interface on the device for IPv6 and define your user-defined DSCP IPv6 rewrite rules.

Overview

In this example, you configure CoS and create a user-defined rewrite rule called rewrite-ipv6-dscps. You then specify rewrite rules for the best-effort forwarding class as be-class, the expedited forwarding class as ef-class, the assured forwarding class as af-class, and the network control forwarding class as nc-class. Finally, you associate interface ge-0/0/0 with the user-defined rule.

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 configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide.

To configure a CoS with a user-defined DSCP IPv6 rewrite rule:

  1. Configure CoS.

  2. Create a user-defined rewrite rule.

  3. Specify rewrite rules for the best-effort forwarding class.

  4. Specify rewrite rules for the expedited-forwarding forwarding class.

  5. Specify rewrite rules for the assured-forwarding forwarding class.

  6. Specify rewrite rules for the network-control forwarding class.

  7. Associate an interface with a user-defined rule.

Results

From configuration mode, confirm your configuration by entering the show class-of-service command. 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

Verifying the CoS with DSCP IPv6 Rewrite Rule Configuration

Purpose

Verify that the user-defined CoS with DSCP IPv6 rewrite rule is associated with an interface.

Action

From configuration mode, enter the show class-of-service command.